I have a DNS CentOs 7 with Bind. Nothing else, just for testing purposes. The domain worldculturesweek.com has the glue ns1 and ns2 records pointing to my server IP wich is not behind NAT. All this is working fine.
The /var/named/worldculturesweek.com file contains:
Code: Select all
$ttl 1800
@ IN SOA worldculturesweek.com. hostmaster.worldculturesweek.com. (
2017071401 ;Serial, todays date + todays serial #
1H ;Refresh
1H ;Retry
1W ;Expire
1H ;Minimum
)
;Nameservers
IN NS ns1.worldculturesweek.com.
IN NS ns2.worldculturesweek.com.
;Resolve Nameserver IPs
ns1 IN A 82.163.78.33
ns2 IN A 82.163.78.33
;Define hosts resolutions
@ IN A 82.163.78.33 ;ns1
@ IN A 82.163.78.33 ;ns2
mail IN A 82.163.78.33
MX records
worldculturesweek.com. IN MX 10 mail.worldculturesweek.com.
;CNAMEs
www IN CNAME @
Heres the output of the dig command:
Code: Select all
; <<>> DiG 9.9.4-RedHat-9.9.4-50.el7_3.1 <<>> worldculturesweek.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64180
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;worldculturesweek.com. IN A
;; AUTHORITY SECTION:
worldculturesweek.com. 299 IN SOA worldculturesweek.com. webmaster\@worldculturesweek.com. 2017071301 600 60 86400 300
;; Query time: 27 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri Jul 14 09:14:10 UTC 2017
;; MSG SIZE rcvd: 114
Any clues?. Thanks.