Forum » Programiranje » [bind9] Kako nastavit CNAME vrednost, da bo response brez dodane "root" domene?
[bind9] Kako nastavit CNAME vrednost, da bo response brez dodane "root" domene?

HotBurek ::
Dobro jutro.
Evo, nov dan, nov izziv.
Tokratni kontekst je Bing Webmaster Tools in "verification" process.
Tega hočem naredit skozi DNS.
Dokumentacija pravi:
Add CNAME (alias) record with name abc and value verify.bing.com.
In v bind9 serverju naredim:
abc IN CNAME verify.bing.com
Ter:
service bind9 restart
In potestiram:
dig abc.example.com CNAME @127.0.0.1
Ter dobim rezultat:
; ---- DiG 9.18.33-1~deb12u2-Debian ---- abc.example.com CNAME @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ---HEADER--- opcode: QUERY, status: NOERROR, id: 32631
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: fd8fdbccc362ffe50100000067ebb2c34b7386e307d97db4 (good)
;; QUESTION SECTION:
;abc.example.com. IN CNAME
;; ANSWER SECTION:
abc.example.com. 60480 IN CNAME verify.bing.com.example.com.
;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Tue Apr 01 11:32:51 CEST 2025
;; MSG SIZE rcvd: 140
No in ta odebeljeni del na koncu me zanima. Ali je možno CNAME nastavit tako, da bo za query "dig abc.example.com CNAME" vrnil samo "verify.bing.com", in ne "verify.bing.com.example.com"?
Skratka, kako za CNAME record nastavit, da server v response-u NE append-a še "svojo" domeno.
Evo, nov dan, nov izziv.
Tokratni kontekst je Bing Webmaster Tools in "verification" process.
Tega hočem naredit skozi DNS.
Dokumentacija pravi:
Add CNAME (alias) record with name abc and value verify.bing.com.
In v bind9 serverju naredim:
abc IN CNAME verify.bing.com
Ter:
service bind9 restart
In potestiram:
dig abc.example.com CNAME @127.0.0.1
Ter dobim rezultat:
; ---- DiG 9.18.33-1~deb12u2-Debian ---- abc.example.com CNAME @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ---HEADER--- opcode: QUERY, status: NOERROR, id: 32631
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: fd8fdbccc362ffe50100000067ebb2c34b7386e307d97db4 (good)
;; QUESTION SECTION:
;abc.example.com. IN CNAME
;; ANSWER SECTION:
abc.example.com. 60480 IN CNAME verify.bing.com.example.com.
;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Tue Apr 01 11:32:51 CEST 2025
;; MSG SIZE rcvd: 140
No in ta odebeljeni del na koncu me zanima. Ali je možno CNAME nastavit tako, da bo za query "dig abc.example.com CNAME" vrnil samo "verify.bing.com", in ne "verify.bing.com.example.com"?
Skratka, kako za CNAME record nastavit, da server v response-u NE append-a še "svojo" domeno.
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
- spremenilo: HotBurek ()

pegasus ::
Da, za začetek pravilno copy/pastaš navodila :D
Še vsi smo se zaklali s pikami v bind zone fajlih ...
Še vsi smo se zaklali s pikami v bind zone fajlih ...

no comment ::
Mogoče rabimo emojija za piko?
Mislim, nove generacije pa to...
Mislim, nove generacije pa to...
Zgodovina sprememb…
- spremenilo: no comment ()

HotBurek ::
Well... vsak stavek se konča s piko. Lahko bi vrednost "verify.bing.com." dali nekje vmes stavka ali kej tazga.
But, whatever...
Res je, pika na koncu je rešila zadevo.
Najprej sem spremenil na "verify.bind.com.", pa začuda ni delalo. Potem pa na "verify.bing.com.", to pa je šlo skos.
Fantje, zlatega zlata ste vredni. Teeeenkkkjuuuu.
But, whatever...
Res je, pika na koncu je rešila zadevo.
Najprej sem spremenil na "verify.bind.com.", pa začuda ni delalo. Potem pa na "verify.bing.com.", to pa je šlo skos.
Fantje, zlatega zlata ste vredni. Teeeenkkkjuuuu.

root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window

no comment ::
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Problem z DNS (non-improving refferal)Oddelek: Omrežja in internet | 5642 (5367) | SasoS |
» | [Ubuntu server] mail poslan iz serverja zazna kot vsiljeno pošto (strani: 1 2 )Oddelek: Omrežja in internet | 9421 (8391) | shorvat |
» | pddomenaOddelek: Omrežja in internet | 3092 (2744) | Gwanaroth |
» | FOX server in virtualna domena?Oddelek: Izdelava spletišč | 1470 (1372) | Ziga Dolhar |
» | Tezave z BINDomOddelek: Omrežja in internet | 1663 (1593) | Seadoo |