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

Notices


Reply
  Search this Thread
Old 10-22-2011, 05:16 AM   #1
vlyamtse
Member
 
Registered: Apr 2007
Posts: 54

Rep: Reputation: 15
name resolution problems


hi,
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":
#192.168.1.19 is assigned to eth0
192.168.1.19 myhost.mydomain.com myhost

"hostname -f" now returns "myhost.mydomain.com" 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
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
What is the application software and what is the error message it gives?
 
Old 10-22-2011, 12:26 PM   #3
xywang
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 127.0.0.1 entry along with the 'localhost'. like this,
127.0.0.1 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 127.0.0.1 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.
 
  


Reply

Tags
dns


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:09 AM.

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