Computing.Net > Forums > Linux > setup dns

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

setup dns

Reply to Message Icon

Name: cebuhelpdesk
Date: May 13, 2005 at 19:00:42 Pacific
OS: rh7.3
CPU/Ram: 265
Comment:


Hello,
Pls help!!!
I am a new subscriber with one of our ISP here and they gives me my private IP and the DNS but my problem is how could i configure it on my box?and add my dns?
here is a sample of what they provided:

IP Address: 192.xxx.xxx.xxx
Mask:255.255.255.xxx
Gateway: 192.xxx.xxx.xxx
Primary DNS: 192.xxx.xxx.xxx
Secondary DNS:192.xxx.xxx.xxx

i couldnt work the internet connections.


st.anger



Sponsored Link
Ads by Google

Response Number 1
Name: resourcepc
Date: May 14, 2005 at 12:26:47 Pacific
Reply:

This all depends on the distro you are using.
To temporarily assign an ip address, you can use the ifconfig command. This will only work until your next reboot.
#ifconfig eth0 192.xxx.xxx.xxx 255.255.255.0

For DNS, you'll need to edit your /etc/resolv.conf file and list those IP addresses for DNS, one on each line. For instance:

192.xxx.xxx.xxx
192.xxx.xxx.xxx

On some distributions, network configuration information is stored in the /etc/sysconfig directory. On a SuSE system for instance, you will find the network configuration settings in the ifcfg-eth0 file in this directory. On a RedHat, you'll find interface settings in the /etc/sysconfig/network-scripts directory. The gateway and hostname are configured in the /etc/sysconfig/network file. Hope this kinda gets you on the right track. Like I said, it all depends on the distro.

If you want additional help, go to ResourcePC.com

For additional help, visit ResourcePC.com


0

Response Number 2
Name: 3Dave
Date: May 16, 2005 at 09:13:02 Pacific
Reply:

One thing hywaydave missed out was how to set your gateway by hand:
# route add -net default gw 192.xxx.xxx.xxx netmask 0.0.0.0 metric 1


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: setup dns

IPTables and DNS problem www.computing.net/answers/linux/iptables-and-dns-problem/21825.html

Linux 6.2 DNS server help. www.computing.net/answers/linux/linux-62-dns-server-help/10672.html

setting Linux as router www.computing.net/answers/linux/setting-linux-as-router/180.html