zonovej soubor zacina:
; BIND data file for mydomain.tld
$TTL 3600
@ IN SOA myhost.mydomain.tld. root.mydomain.tld. (
2022110401
14400
3600
604800
86400 )
IN A <IP>
Nevim co by tam mohlo byt spatne, takhle to mam u vsech domen. Bind ma konfiguraci:
zone "mydomain.tld" {
type master;
file "db.mydomain.tld";
inline-signing yes;
auto-dnssec maintain;
key-directory "/etc/bind/keys";
allow-transfer { slavedns; };
};
Taky mi to pripada v poradku, a stejne jako u dalsich 5 domen. A vypis z dig-u:
dig @localhost mydomain.tld A
; <<>> DiG 9.11.5-P4-5.1+deb10u8-Debian <<>> @localhost mydomain.tld A
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48015
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 7
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 5a746739be6907a52cda1be5636815bb2026567bf32814c9 (good)
;; QUESTION SECTION:
;mydomain.tld. IN A
;; ANSWER SECTION:
mydomain.tld. 36000 IN A <WrongIP>
;; AUTHORITY SECTION:
<jmenne servery, tady vsechno v poradku>
;; ADDITIONAL SECTION:
<prevod fqdn na IP pro jmenne servery, taky vsechno v poradku>
Naprosto stejne to mam jeste u jedne domeny, kde to funguje v poradku. Nechapu...