General discussion

Locked

LINUX networking configuration

By hoayfern ·
Hi,

currently we have a dns server 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 ??

here is the contents of what i have configure
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=etho
IPADD="203.126.241.55"
NETMASK="255.255.255.0"
NETWORK=203.126.241.0
BROADCAST=203.126.241.255
ONBOOT=yes
BOOTPROTO=none

the contents of the /etc/sysconfig/network
NETWORK=yes
FORWARD_IPV='no"
HOSTNAME="dns3.duraco.com.sg"
DOMAINNAME="duraco.com.sg"
GATEWAY="203.126.241.49"
GATEWAYDEV="eth0"
contents of /etc/hosts
127.0.0.1 host localhost.localdomain
203.126.241.155 duraco.com.sg dns3.duraco.com.sg

contents of /etc/resolv.conf
serach duraco.com.sg
nameserver 203.126.241.50

my routing table informations:
destination gateway genmask UH
203.126.241.55 0.0.0.0 255.255.255.255 U
203.126.241.0 0.0.0.0 255.255.255.0 U
127.0.0.0 0.0.0.0 255.0.0.0 U
0.0.0.0 203.126.241.49 0.0.0.0 UG

is there any problems with myrouting table and configurations

i really hope can ping out so that i can configure it as our mail server and web server

please assits

hoay fern
please assist

hoay fern

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

LINUX networking configuration

by Shanghai Sam In reply to LINUX networking configur ...

hey!!!

can you give us the exact lay-out of your network? i mean how dns and your dns3 connected. btw can you check your DNS if you can ping it to your DNS3?

ian

Collapse -

LINUX networking configuration

by Shanghai Sam In reply to LINUX networking configur ...

Looks like your config is mostly correct, assuming that your DNS machine can be reached from another working host on your subnet (which means you *know* that the machine and its network interface card is also working - if not, check the card's IRQ and I/O address conflicts).

Also, I assume that the config info that you post is also verbatim from your files. If that IS the case, then you have, at least, one misspelling. Instead of:

contents of /etc/resolv.conf
serach duraco.com.sg
nameserver 203.126.241.50

you should have:

contents of /etc/resolv.conf
search duraco.com.sg
nameserver 203.126.241.50

That is, your keyword "search" is misspelled.

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums