I ran this command
# dig mysite.com @localhost
The result was the below and my zone file is below that. Why is the AUTHORITY SECTION ns.mysite.com.mysite.com? Instead of ns.mysite.com?
Another thing bothering me is how does anyone find mysite.com? It appears my registrar forces me to use TWO domain name. I wrote in ns.mysite.com
and ns2.mysite.com
. If the domain (mysite.com) is defined on my server how the heck is anyone going to find my server to look up mysite.com
?
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> mysite.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30664
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;mysite.com. IN A
;; ANSWER SECTION:
mysite.com. 259200 IN A 1.2.3.4
;; AUTHORITY SECTION:
mysite.com. 259200 IN NS ns.mysite.com.mysite.com.
mysite.com. 259200 IN NS ns2.mysite.com.mysite.com.
;; ADDITIONAL SECTION:
ns.mysite.com.mysite.com. 259200 IN A 1.2.3.4
ns2.mysite.com.mysite.com. 259200 IN A 1.2.3.4
;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Feb 28 01:25:52 2015
;; MSG SIZE rcvd: 114
; MYSITE.com
$TTL 3D
MYSITE.com. IN SOA ns.MYSITE.com. admin@MYSITE.com. (
8545645444
8H
2H
4W
1D)
MYSITE.com. IN NS ns.MYSITE.com
MYSITE.com. IN NS ns2.MYSITE.com
MYSITE.com. IN A 1.2.3.4
*.MYSITE.com. IN A 1.2.3.4
ns.MYSITE.com. IN A 1.2.3.4
ns2.MYSITE.com. IN A 1.2.3.4
*.MYSITE.com. IN MX 1 ASPMX.L.GOOGLE.COM.
*.MYSITE.com. IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
*.MYSITE.com. IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
*.MYSITE.com. IN MX 10 ALT3.ASPMX.L.GOOGLE.COM.
*.MYSITE.com. IN TXT "v=spf1 include:_spf.google.com ~all"