Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-22-2011, 05:16 AM   #1
Registered: Apr 2007
Posts: 52

Rep: Reputation: 15
name resolution problems

I have to change name resolution for RedHat 5 system so that the name will be resolved to "real" IP address ( assigned to eth0) vs. loopback. I have dns server from my provider, so in /etc/nsswitch.conf resolution via /etc/hosts is first, and via dns service second
hosts: files dns

and I changed "/etc/hosts":
# is assigned to eth0 myhost

"hostname -f" now returns "" but is it enough to assume that name resolution working?
The application software still fails due to name resolution problems... Is there anything else i should do ?

Also, how can i set /etc/hosts name assignment for dynamic ( DHCP assigned) address, vs. static?
Thank you,
Old 10-22-2011, 09:39 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian except for netbook still on Slackware 13.37 (and I have to support Ubuntu)
Posts: 8,572
Blog Entries: 30

Rep: Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182Reputation: 1182
What is the application software and what is the error message it gives?
Old 10-22-2011, 12:26 PM   #3
LQ Newbie
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
on your RH5 system if you get eth0 IP from DHCP you only need to put your hostname in entry along with the 'localhost'. like this, localhost your-rh5-hostname
/etc/hostname sets your hostname at boot time.
/etc/resolv.conf domain entry sets the dnsdomainname at boot time.
the name-to-ip lookup of your system local application will use the address, and for your remote application they need to relay on the DNS that is integrated with the DHCP where DHCP will dynamically update the DNS server on IP assignment and return.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolution Problems with Two Monitors and Resolution Problems in General ZeroDaHero Linux - Software 1 08-31-2008 06:18 AM
Resolution Problems Johnsernickle Fedora 2 03-03-2005 01:27 AM
Resolution Problems gauntalus Linux - Software 9 01-12-2005 04:34 PM
Resolution Problems kamransoomro84 Slackware 5 05-20-2004 05:47 PM
Resolution Problems garamatt Linux - General 2 10-14-2003 11:24 PM

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration