nslook up domain and ping domain problem

Hi, I have problem to either nslookup my domain and ping my domain.
I have both DNS services and Open Directory Master setup.
When I do the nslookup my domain, I got the following answer

nslookup mydomain.com
Server: 192.168.1.2
Address: 192.168.1.2#53

Can't find mydomain.com: No answer

When I ping my domain, I got the following answer:
unknown host.

Here is the zone that I have setup:
mydomain.com.
myhost.mydomain.com machine 192.168.1.2
ns1 alias myhost.mydomain.com

Any help would be appreciated. Thanks in advanced.

Mac OS X (10.5.2)

Posted on Feb 28, 2008 6:01 PM

Reply
4 replies

Mar 1, 2008 7:55 AM in response to Leif Carlsson

Thanks for the info. I finally can pint my domain. When I do the nslookup, I still got this

mydomain.com
server: 192.168.1.2
address: 192.168.1.2#53

Can't find mydomain.com: No answer.

I can do both host 192.168.1.2
with an answer of 2.1.1.168.192 in-addr.arpa domain name pointer myhost.mydomain.com
and with host myhost.mydomain.com.
I got my myhost ip.

Thanks,

Mar 12, 2008 6:10 PM in response to MrHoffman

In the /var/named folder, there are a folder call zones. There are 2 files: db.1.168.192.in-addr.arpa.zone.apple and db.phantomva.com.zone.apple

In db.phantomva.com.zone.apple
;GUID=681B8D6B-1145-446D-A8E9-594E25B4F45F

$TTL 10800
phantomva.com. IN SOA ditws-xserve.phantomva.com. diradmin.phantomva.com. (
2008031230 ;Serial
86400 ;Refresh
3600 ;Retry
604800 ;Expire
345600 ;Negative caching TTL
)

phantomva.com. IN NS ditws-xserve.phantomva.com.
ditws-xserve.phantomva.com. IN A 192.168.1.2
http.tcp IN PTR Homepage. http.tcp.phantomva.com.
Homepage. http.tcp IN SRV 0 0 80 ditws-xserve.phantomva.com.
Homepage. http.tcp IN TXT "=/"

In db.1.168.192.in-addr.arpa.zone.apple
;GUID=AAB0E753-DCED-48BA-A941-52B611F7F6CC

$TTL 10800
1.168.192.in-addr.arpa. IN SOA ditws-xserve.phantomva.com. admin.phantomva.com. (
2008022801 ;Serial
86400 ;Refresh
3600 ;Retry
604800 ;Expire
345600 ;Negative caching TTL
)

1.168.192.in-addr.arpa. IN NS ditws-xserve.phantomva.com.
2.1.168.192.in-addr.arpa. IN PTR ditws-xserve.phantomva.com.


In localhost.zone
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS @
1D IN A 127.0.0.1
In named.ca
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC
; under anonymous FTP as
; file /domain/named.root
; on server FTP.INTERNIC.NET
;
; last update: Nov 5, 2002
; related version of root zone: 2002110501
;
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
; formerly NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201
;
; formerly C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
; formerly NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; formerly NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
; formerly NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
; operated by VeriSign, Inc.
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
;
; housed in LINX, operated by RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
;
; operated by IANA
;
. 3600000 NS L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
;
; housed in Japan, operated by WIDE
;
. 3600000 NS M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
; End of File

In named.local
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

1 IN PTR localhost.

In db.1.168.192.in-addr.arpa.
;THE FOLLOWING INCLUDE WAS ADDED BY SERVER ADMIN. PLEASE DO NOT REMOVE.

In db.phantomva.com.
;THE FOLLOWING INCLUDE WAS ADDED BY SERVER ADMIN. PLEASE DO NOT REMOVE.
$INCLUDE /var/named/zones/db.phantomva.com.zone.apple
$INCLUDE /var/named/zones/db.1.168.192.in-addr.arpa.zone.apple


Hope that answer you.

Thanks,

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

nslook up domain and ping domain problem

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.