Redhat DNS Entry


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Redhat DNS Entry
# 1  
Old 09-03-2008
Redhat DNS Entry

I have a installed Redhat Linux v5 on a new HP Pavillon PC. It has a dual boot with Vista. Booting from Vista, I can connect to the internet. However with Redhat I cannot connect to the internet.

I looked at the /etc/resolv.conf file in Redhat and there is no DNS entry there. From where do I get the DNS entry from and what is the format that I enter the DNS entry in resolv.conf.

An example of resolv.conf file will help.

Looking forward for your help.

Regards,

Anil
# 2  
Old 09-03-2008
Get the nameservers from your isp or use DHCP.

Here are samples of the relevant files to check.

resolv.conf
Code:
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx


/etc/sysconfig/network
Code:
NETWORKING=yes
HOSTNAME=Somehostname
GATEWAY=192.168.1.1    #What ever your gateway is.

/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.100.255
IPADDR=192.168.1.190
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes

# 3  
Old 09-03-2008
Ikon,

Thanks so much for your suggestions.

For resolv.conf file you suggested that I get the nameserver from my ISP. I have tried that and was not able to obtain it. Since I have Vista installed on the same PC, could I do cmd>ipconfig /all on DOS and get the DNS server number like 192.xxx.xx.xx and use the same number for Redhat.

Also for ifcfg-eth0, do I use exactly the same numbers for Broadcast, IPADDR etc as yours?

Regards,

Anil
# 4  
Old 09-03-2008
To connect to an ISP, you will (typically) use DHCP with your ethernet interface. Ikon has given you an example of a static IP, which might work if you copy down all the information from the vista configuration (from ipconfig /all after you have a connection). However, that might not work because the IP address you get might be released when you shut down, letting the ISP assign someone else that IP address.

Anyway, what you really want to do is set up the interface to use DHCP, and for that, you can just use the RedHat management tools to set up networking. If you don't want to run X, RedHat has a command-line tool, but the name of it escapes me at the moment.
# 5  
Old 09-04-2008
Any more suggestions

I changed the resolv.conf, /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network files as per Ikon's suggestions but could get the internet connections.

Any other suggestions!!! Think we need an updated driver or something.

Will look forward for your help.

Regard,

Anil
# 6  
Old 09-04-2008
As repeatedly suggested, set it up to use DHCP instead. That's almost 100% certainly how Vista does it, unless you have configured it by hand to do something else.

Of course, it might also be a good idea to check that eth0 is working in the first place. Can you ping your router? Do you get notices about eth0 and/or TCP and/or Ethernet in /var/log/dmesg when you boot?
# 7  
Old 09-04-2008
Dhcp

Era,

Yes, it is set up for DHCP.

There is a radio button checked in Devices -- Automatically obtain IP address settings: DHCP

In the network configuration window it has:

Device eth0: Status Inactive, Nickname:eth0, Type: Ethernet
Hardware: Type Ethernet, Device: eth0, Status:OK
IPSEC: There are no entries
DNS: Hostname--HP-a6512p-b. For Primary, Secondary and Tertiary DNS, I found values from VISTA using IPCONFIG /ALL and entered them for DNS.
HOSTS: There are no entries

Is there anything I am missing? Is it possible to talk to someone. I will call.

Thanks and Regards,

Anil
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Modifying/Adding in the DNS server entry using shell script

Dear Experts. I need to add/modify the entries in the DNS server and this has to be achieved using shell script and below is the requirement, could you please let me know if a shell script can be written for this task? 1. Log in to primary DNS server 2. Check /etc/named.conf if zone is... (4 Replies)
Discussion started by: VKIRUPHAKARAN
4 Replies

2. Red Hat

DNS issue in Redhat 9

Hi all m newbie in linux and trying to setup my internal DNS server for local network.After messing with DNS for hours i am posting this. i have configured /etc/resolve.conf, hostname with domain name in /etc/sysconfig/network file,/etc/hosts file with local host entry and zone file... (1 Reply)
Discussion started by: Vaibhav.T
1 Replies

3. IP Networking

Configuring DNS Server in Linux Redhat

Can someone help with a detail step-by-step oh how to configure DNS server on Linux Server. - I need to have 3 IP addresses map to a single hostname. for clients I'm a Linux rookie. Thanks Oscar (1 Reply)
Discussion started by: FrankOscar
1 Replies

4. Red Hat

DNS for linux RedHat

Dear members, I am trying to set up a simple DNS but the problem is that when I ping the name of the IP address in the Reverse file, it does not recognise it. My code are as follows: Note that my IP address is 172.22.45.237. In my /etc/named.conf file, I have added the following lines ... (10 Replies)
Discussion started by: shakshakshuk
10 Replies

5. Red Hat

Dns configuration error in Redhat

Dear All I want to configure DNS in redhat linux. i am following these steps but when i restart the services it is showing status failed. Please any body can help me on urgent basis. #service named restart Stopping named: Starting named: ---------Edited in named.conf... (2 Replies)
Discussion started by: sahu.tapan
2 Replies

6. IP Networking

Hosts file ignored, no DNS entry but still routes!!

Hi all, I have an entry in my hosts file on a server called tractor as follows: 10.67.34.128 digger-m2m digger I have a DNS server configured but it doesn't seem to know about digger. When I do an nslookup on tractor for digger i get the following: new_dns1.oam.uk can't find digger: Non... (0 Replies)
Discussion started by: Donkey25
0 Replies

7. UNIX for Dummies Questions & Answers

DNS forward and reverse entry required thorugh scripting instead of manually done

HI GUrus, I am very mcuh new for this forum ....i need you all guys help for resolving my queries. As i have DNS server , platform is sunsolaris----8. We are using that serevr for resolving all network nodes. I am going to explain the process what i am following .... I could have... (2 Replies)
Discussion started by: leenagoyal
2 Replies

8. AIX

How to add DNS entry in AIX 5.3

we have using windows 2003 server as DNS Server, now we want add dns entry in AIX 5.3 server. can any body help (1 Reply)
Discussion started by: Balajipoola007
1 Replies

9. Solaris

subdomain name entry in DNS server

Hi all, I'm tying to add dns a A record to a dns server running on Solaris 10 on sun's SPARC machine i want to do the following add host name to point to an IP address for a machine running win2k3 both machines have real IPs and exposed to the internet where can i add the A records on DNS server... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

10. UNIX for Dummies Questions & Answers

Updating DNS entry

what files do I edit?? or what am trying to get at here is that is this process of updating dns entries relatively simple or very complicated. please tell me about the files that are involved (2 Replies)
Discussion started by: TRUEST
2 Replies
Login or Register to Ask a Question