Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-22-2011, 05:16 AM
|
#1
|
|
Member
Registered: Apr 2007
Posts: 49
Rep:
|
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,
|
|
|
|
10-22-2011, 09:39 AM
|
#2
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
|
What is the application software and what is the error message it gives?
|
|
|
|
10-22-2011, 12:26 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2011
Posts: 4
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:51 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|