Back to Question Center
0

Semalt: Na rajista a yankin suna - ta yaya zan iya nuna shi zuwa ga DynDNS rundunar?

1 answers:

Zan yi amfani da shafin yanar gizon daga gidan na'ura? Ina da adireshin DynDNS don haka koda kuwa idan na canza IP na waje, inji yana da damar.

Yarda cewa, alal misali, injin yana samuwa a misali. dyndns-gida. com (wannan sabis ne kyauta daga DynDNS) - cheap bar tables for home. Na yi rajistar sunan yankin don shafin yanar gizonku daga GoDaddy. Bari mu ce sunan yankin shine misali. com

A yanzu, na tura tashar jiragen ruwa 80 don haka zan iya shigar misali. dyndns-gida. com daga ko'ina kuma zan iya ganin duk abin da na shirya a akwatin na.

Yaya zan iya sa shi don haka, idan na shiga www. misali. com , na ga abu ɗaya? Ina so in ga abin da zan karba akan na'ura na gida akan intanet ta misali. com .

February 13, 2018
. misali. com zuwa misali. dyndns-gida. com . Na kawai taba amfani daya domain mai rejista (ba Godaddy), amma suna da m yanar gizo neman karamin aiki inda za ka iya sabunta da DNS rikodin.

Misalin misali:

  www. misali. com. 43200
IN
CNAME
misali. dyndns-gida. com.  

An bada misali mai aiki , a kalla ta yin amfani da sunayen sunayen Google.

Shirya (sau biyu):

Idan kana son http: // misali. com don aiki kuma, dole ne ka ƙara shigarwa ta biyu daga misali. com zuwa misali. dyndns-gida. com . Wannan zai iya yi ta isar da @. misali. com , Ban sani ba idan wannan daidai ne ko a'a.

A karshe na san Menene matsala? Don ni My fitina ISP 80 da 8080 Don haka ina saita shafin yanar gizonmu don aiki tare da wani tashar jiragen ruwa Misali:

  http: // kullun. dyndnsorg: 5060 

1- Na yi rajistar kwanaki 14 na gwaji a Dyn Standard Dns

2- Na saita yankinku tare da DNS daga dyndns

  xxxx. dns. dyn. com
xxxx. dns. dyn. com
xxxx. dns. dyn. com
xxxx. dns. dyn. com  

3- Na ƙirƙiri sabuwar WebHop don turawa na Domain To My DynDns Domain Alal misali

  Sunan mai watsa shiri: misali. comSabis: WebHopƘarin bayani: http: // misali. dyndns. org: 5060 

Ana tsammanin kana da Linux mai gudana, kuma kana neman sabunta DNS A rikodin tare da IP na uwar garke naka a DNS wanda GoDaddy ya shirya, zaka iya yin wadannan a kan uwar garke ta gida. Ka lura cewa na karya ka'idar EULA. Tabbatar cewa ku bi dokoki!

  1. Shigar Python2. 7 (wataƙila an riga an shigar da ita).

  2. Sanya fayil din a / config / scripts / godaddy_ddns. py . Sashi ne wanda yake aikin ainihin aikin sabunta godaddy ta amfani da ɗakin library na pygodaddy. Zai sabunta duk yankuna masu dangantaka da godaddy account. Za a saita wani rikodin A ga '' '' subdomain ''. Za ka iya shirya wannan, idan kana so ka saka madadin subdomains. Dole ne ku maye gurbin ' @ USERNAME @ ' tare da sunan mai sunan godaddy da ' @ KASHEWA @ ' tare da kalmar sirrin godaddy.

      #! / Usr / bin / env pythonshigo da shiga
    shigo da pif
    shigo da pygodaddy# Bayanin asali:
    # https: // saschpe. wordpress. com / 2013/11/12 / godaddy-dyndns-ga-matalauta /
    # https: // github. com / observerss / pygodaddy
    #
    # Sauya ta Jeremy Sears (https: // stackoverflow. com / masu amfani / 1240482 / jsears)shiga. BasicConfig (filename = 'godaddy. log ', format ='% (asctime) s% (sakon) s ', matakin = shigarwa. INFO)
    # da "buƙatun" ɗakin ɗakin ɗakin karatu yana lalata, don haka juya wannan a kashe
    shiga. getLogger ("buƙatun"). saitaLevel (shiga. WARNING)shiga. debug ("DEBUG: Runing godaddy_ddns. py ");U = "@ USERNAME @"
    P = "@ KASHEWA @"
    abokin ciniki = pygodaddy. Abokin GoDaddy 

    nasara = abokin ciniki. shiga (U, P) idan nasarar:shiga. debug ("DEBUG: Yi nasarar shiga cikin. ") wasu:shiga. kuskure ("ERROR: Ba a yi nasarar shiga cikin godaddy ba. com tare da sunan mai amfani: '{0}'. ". Tsarin (U))don yankin a abokin ciniki. find_domains

    :shiga. debug ("DEBUG: Neman DNS Records for {0}. ". tsarin (yankin))dns_records = abokin ciniki. find_dns_records (yankin)public_ip = pif. samu_public_ip

    shiga. debug ("DEBUG: Domain '{0}' Bayanan DNS: {1}". Tsarin (yanki, dns_records))shiga. debug ("DEBUG: Tarihin jama'a na yau da kullum '{0}'. ". tsarin (public_ip))idan len (dns_records) == 0:shiga. debug ("DEBUG: Babu bayanan DNS da aka samo. ")wasu:shiga. debug ("DEBUG: IP a halin yanzu a DNS shine '{0}'. ". tsarin (dns_records [0]. darajar))idan len (dns_records) == 0 ko public_ip! = dns_records [0]. darajar:shiga. debug ("DEBUG: Ana ɗaukaka wani rikodin ga yankin '{0}'. ". tsarin (yankin))nasara = abokin ciniki. sabunta_dns_record ("@. "+ yanki, public_ip)idan nasarar:shiga. info ("INFO: Domain '{0}': Aiki ya sanya jama'a IP don '{1}'. ". tsarin (yankin, public_ip))wasu:shiga. kuskure ("ERROR: Domain '{0}': Ba za a iya sabunta jama'a IP ga '{1}'. ". tsarin (yankin, public_ip))wasu:shiga. info ("INFO: Public IP Wani rikodin rikodin rikodi na yankin '{0}' yana da kwanan wata, kuma baya buƙatar sabuntawa. ". tsarin (yankin))

  3. Run sudo chown tushen / config / scripts / godaddy_ddns. py

  4. Run sudo chmod u + x / config / scripts / godaddy_ddns. py
  5. Sanya fayil din a / config / scripts / godaddy_ddns. sh . Wannan rubutun rubutun ne da ke samar da wata ƙwayar cuta don ware ɗakin ɗakin karatu da rubutun python yayi amfani. Daga nan sai ya kira rubutun python na sama.

      #! / Bin / sh# Bayanin asali:
    # https: // saschpe. wordpress. com / 2013/11/12 / godaddy-dyndns-ga-matalauta /
    # https: // github. com / observerss / pygodaddy
    #
    # Sauya ta Jeremy Sears (https: // stackoverflow. com / masu amfani / 1240482 / jsears)OLD_PWD = $ PWD
    ROOT_DIR = $ (dirname $ 0)
    idan [-n "$ 1"]; to,WORKING_DIR = $ 1
    wasuWORKING_DIR = $ ROOT_DIR
    fi
    mkdir -p $ WORKING_DIR
    cd $ WORKING_DIR
    idan [! -d. venv27]; to,curl -O https: // pypi. python. org / kunshe-kunshe / source / v / virtualenv / virtualenv-1. 9. tar. gztar xvfz virtualenv-1. 9. tar. gzpython virtualenv-1. 9 / virtualenv. py. venv27
    fi
    source. venv27 / bin / kunna
    pip shigar -q - saitin pif pygodaddy
    $ ROOT_DIR / godaddy_ddns. py
    kashe
    cd $ OLD_PWD 
  6. Run sudo chown tushen / config / scripts / godaddy_ddns. sh

  7. Run sudo chmod u + x / config / scripts / godaddy_ddns. sh
  8. Sanya fayil ɗin nan a / sauransu / cron. hourly / run_godaddy_ddns (babu tsawo fayil). Wannan zai kira godaddy_ddns. sh script a kowace sa'a.

      #! / Bin / shWORKING_DIR = / var / local / godaddy_ddns
    exec / config / scripts / godaddy_ddns. sh $ WORKING_DIR
    fita 0 
  9. Run sudo chown

Rubuta / motsa yankinku zuwa mai rejista wanda ke goyan bayan aikin Dynamic DNS. Namecheap. com ɗaya ne mai rejista. Umurni suna a cikin rashin sanin su . Lura cewa za ka iya taimaka dynamic DNS don Reshen yanki ta hanyar samar da wani Reshen yanki shigarwa na type 'A + Dynamic DNS'.

Kunshin tsoho don ddclient kunshin (a kan Arch Linux, a kalla) ya haɗa da saitunan don yarjejeniyar mai rejista:

  ##
## NameCheap (namecheap. com)
##
yarjejeniya = namecheap, \
uwar garken = dynamicdns. Park-your-domain. com, \
shiga = TUR-LEVEL-DOMAIN, \
kalmar sirri = HEX-KASHEWA-DAGA-DASHBOARD \
KA-DYNAMIC-SUBDOMAIN. YOUR-TOP-LEVEL-DOMAIN