Raghu,
Here are results of few commands so that you get complete idea
Public IP: 198.55.51.164
Private (local) IP: 192.168.10.155
Domain: tg-dev.com
Nameservers: ns1.tg-dev.com,
ns2.tg-dev.com
- Nslookup result for nameserver ns1.tg-dev.com
[root@ded ~]# nslookup ns1.tg-dev.com
Server: 192.168.10.155
Address: 192.168.10.155#53
Name: ns1.tg-dev.com
Address: 198.55.51.164
- Nslookup result for domain tg-dev.com
[root@ded ~]# nslookup tg-dev.com
Server: 192.168.10.155
Address: 192.168.10.155#53
Name: tg-dev.com
Address: 198.55.51.164
- Dig result for namserver ns1.tg-dev.com
[root@ded ~]# dig ns1.tg-dev.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.4 <<>> ns1.tg-dev.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12530
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1
;; QUESTION SECTION:
;ns1.tg-dev.com. IN A
;; ANSWER SECTION:
ns1.tg-dev.com. 14400 IN A 198.55.51.164
;; AUTHORITY SECTION:
ns1.tg-dev.com. 86400 IN NS ns1.tg-dev.com.
ns1.tg-dev.com. 86400 IN NS ns2.tg-dev.com.
;; ADDITIONAL SECTION:
ns2.tg-dev.com. 14400 IN A 198.55.51.164
;; Query time: 0 msec
;; SERVER: 192.168.10.155#53(192.168.10.155)
;; WHEN: Tue Nov 24 06:11:00 2015
;; MSG SIZE rcvd: 96
- Dig result for domain tg-dev.com
[root@ded ~]# dig tg-dev.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.4 <<>> tg-dev.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25036
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;tg-dev.com. IN A
;; ANSWER SECTION:
tg-dev.com. 14400 IN A 198.55.51.164
;; AUTHORITY SECTION:
tg-dev.com. 86400 IN NS ns1.tg-dev.com.
tg-dev.com. 86400 IN NS ns2.tg-dev.com.
;; ADDITIONAL SECTION:
ns1.tg-dev.com. 14400 IN A 198.55.51.164
ns2.tg-dev.com. 14400 IN A 198.55.51.164
;; Query time: 0 msec
;; SERVER: 192.168.10.155#53(192.168.10.155)
;; WHEN: Tue Nov 24 06:13:47 2015
;; MSG SIZE rcvd: 112
- Host command result
[root@ded ~]# host tg-dev.com
tg-dev.com has address 198.55.51.164
tg-dev.com mail is handled by 90 ticketgateway.com.bak-mx.na0101.smtpbak.com.
tg-dev.com mail is handled by 10 ticketgateway.com.pri-mx.na0101.smtproutes.com.