View Single Post
  #9  
Old 13th March 2009, 22:16
ggohdin ggohdin is offline
Junior Member
 
Join Date: Mar 2009
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi, i am using mydns just like in the tutorial.

the /etc/hosts file is setout like this:

<--
127.0.0.1 localhost.localdomain localhost
192.168.1.4 server.agama.com server

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

-->

Im pretty sure that is right.

and interfaces is:

<--
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
-->

when I type dig `hostname`

<--
question section:
server.agama.com in a

Authority section:
agama.com 10800 in SOA ns1.gold.net. dnsmaster.gld.net
. 2005122700 10800 3600 3600000 86400

server: 192.168.1.1#53(192.168.1.1)
--->

when I type nslookup server.agama.com

<---
server: 192.168.1.1
address: 192.168.1.1#53

**server can't find server.agama.com:NXDOMAIN
--->

any thing that can point me in the right direction will be much appreciated

***EDIT***

I edited the file "/etc/resolv.conf" which was showing nameserver 192.168.1.1 and renamed the ip to point to 192.1658.1.4.

Now when I type dig `hostname`, ns1.agama.com and webmaster.agama.com (what I set up in mydns) show up, as well as server: 192.168.1.4#53(192.168.1.4).

when I type nslookup server.agama.com I get:

server: 192.168.1.4
address: 192.168.1.4#53
**server can't find server.agama.com:NXDOMAIN

am I heading in the right direction?

netstat -tap

tcp 0 0 server.agama.com:domain *:* LISTEN 2756/mydns
tcp 0 0 localhost.locald:domain *:* LISTEN 2756/mydns

this seems wrong to me?

***END***

Last edited by ggohdin; 14th March 2009 at 06:06.
Reply With Quote