Quote:
Originally Posted by phoenix You do only need the one IP in your resolv and that should be your internal DNS server. I was, however, talking about the fact your dig commands did not return the correct information, they would appear to point to your public IP rather than your LAN IP. |
I have changed my hosts file and resolv.conf file as :
127.0.0.1 localhost.localdomain localhost
192.168.0.77 servposta.xxxxxx.yy servposta
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
-----------
search xxxxxx.yy
nameserver 192.168.0.77
and the result is
; <<>> DiG 9.4.2-P2 <<>> xxxxxx.yy any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29754
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 13, ADDITIONAL: 0
;; QUESTION SECTION:
;xxxxxx.yy. IN ANY
;; ANSWER SECTION:
xxxxxx.yy. 1533 IN A 68.71.33.34
xxxxxx.yy 1533 IN MX 10 mail.xxxxxx.yy.
;; AUTHORITY SECTION:
. 508989 IN NS F.ROOT-SERVERS.NET.
. 508989 IN NS K.ROOT-SERVERS.NET.
. 508989 IN NS I.ROOT-SERVERS.NET.
. 508989 IN NS E.ROOT-SERVERS.NET.
. 508989 IN NS G.ROOT-SERVERS.NET.
. 508989 IN NS H.ROOT-SERVERS.NET.
. 508989 IN NS B.ROOT-SERVERS.NET.
. 508989 IN NS M.ROOT-SERVERS.NET.
. 508989 IN NS D.ROOT-SERVERS.NET.
. 508989 IN NS C.ROOT-SERVERS.NET.
. 508989 IN NS A.ROOT-SERVERS.NET.
. 508989 IN NS J.ROOT-SERVERS.NET.
. 508989 IN NS L.ROOT-SERVERS.NET.
;; Query time: 0 msec
;; SERVER: 192.168.0.77#53(192.168.0.77)
;; WHEN: Wed Sep 16 11:45:50 2009
;; MSG SIZE rcvd: 275
and this is nslookup servposta.xxxxxx.yy
Server: 192.168.0.77
Address: 192.168.0.77#53
** server can't find servposta.xxxxxx.yy: NXDOMAIN