Discussion Locked

networking

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I have some query
regarding the name server which I have to put into the /etc/resov.conf

currently we have a dns 203.126.241.50 and now I configure another PC for my
practice use.

I edit 3 files for another PC such as
1)vi /etc/hosts
2)vi /etc/sysconfig
3)vi /etc/sysconfig/network-scripts/ifcofg-eth0

the hostname that I configure is dns3.duraco.com.sg
IP address: 203.126.241.155
gateway:203.126.241.49

I can ping to my gateway but I can't ping to 203.126.241.50

I try to put the nameserver as 203.126.241.50, when I try to use the
nslookup command, it said that no domain server found.
may I know normally what we put in the nameserver ??

please assist

hoay fern

1 reply

by tsameer

Hi, I will give some hints.

your host ip address is 203.126.241.155
your dns is 203.126.241.50
ur gateway is 203.126.241.49

scenario 1
Is your DNS server in ur same network or an external network. If it is on your same network,then there is no need for the gateway. It could be that your dns server is not responding to your own host broadcasts.

scenario2
If your dns server is on an external network,then you need to route packets between your network and the external network on which the dns resides.Check whether the gateway is enabled for routing.

If the dns is on an external network you can also try this command at the shell prompt.

route add -net 0.0.0.0 netmask 0.0.0.0 gw 203.126.241.49 dev (ethernet device name)

Then try searching for the nameserver.

regards
sameer

This discussion is closed to new replies.