DNS issue still not looking in files


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users DNS issue still not looking in files
# 1  
Old 05-20-2003
Question DNS issue still not looking in files

anyone ever seen this problem

with /etc/nsswitch.conf forcing the system to look in files then dns
but the system ignores the files and goes off check the dn servers

is there any further config I've missed ???

/etc/resolve.conf name servers >>>> boring IPS
/etc/nsswitch.conf is set to >>>> hosts files dns


running solaris 8 on e4500.

thanks Kie
# 2  
Old 05-20-2003
i can only assume that you do have entries in your /etc/hosts for the hostname you are trying to look up?

i noticed your missing a colon after teh word hosts. was this a typo?

it should look like this "hosts: files dns"


a fast way to make sure its doign the files befor the dns is add teh following entry to your /etc/hosts file

"1.1.1.1 my-test"

then try to ftp to that hostname. it should try to connect to the listed IP.
# 3  
Old 06-03-2003
I haven't been able to post the rest from work I'll try tomorrow again
# 4  
Old 06-04-2003
I've been looking into the DNS issue here what I got, I added a logical interface with the ip 1.1.1.1

cofdr01 > ifconfig hme0 addif 1.1.1.1 up
Created new logical interface hme0:1

added 1.1.1.1 testftp /etc/hosts
/etc/nsstich.conf was hosts:files dns
cofdr01 > ping 1.1.1.1
1.1.1.1 is alive
cofdr01 > nslookup testftp
Server: blah.blah
Address: 170.30.9.12

then changed nsswitch.conf

hosts: dns

ping didn't work either did nslookup

cofdr01 > arp -d 1.1.1.1
1.1.1.1 (1.1.1.1) deleted
cofdr01 > arp -d testftp
arp: testftp: unknown host

from testing this with truss I've found nslookup doesn't look in nsswitch, ping does as I added the files option to nsswitch.conf and

cofdr01 > ping testftp
testftp is alive

Dataprotector I think, looks for the existance existance of resolv.conf and goes ahead otherwise looks in /etc/hosts, I'll try a truss later on a UPDATE


heres the opened files whilst running

truss -o /tmp/kie omnicc -update_host mgunix11 ; grep open /tmp/kie
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
open("/usr/lib/libnsl.so.1", O_RDONLY) = 3
open("/usr/lib/libsocket.so.1", O_RDONLY) = 3
open("/usr/lib/libw.so.1", O_RDONLY) = 3
open("/usr/lib/libBrandChg.so", O_RDONLY) Err#2 ENOENT
open("/opt/omni/lib/libBrandChg.so", O_RDONLY) = 3
open("/usr/lib/libc.so.1", O_RDONLY) = 3
open("/usr/lib/libdl.so.1", O_RDONLY) = 3
open("/usr/lib/libmp.so.2", O_RDONLY) = 3
open("/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1", O_RDONLY) = 3
open("/etc/netconfig", O_RDONLY) = 3
open("/dev/udp", O_RDONLY) = 3
open64("/etc/.name_service_door", O_RDONLY) = 3
open64("/opt/omni/lib/nls/C/omni.cat", O_RDONLY) = 4
open("/usr/share/lib/zoneinfo/GB", O_RDONLY) = 5
open64("/etc/opt/omni/cell/cell_server", O_RDONLY) = 5
open("/etc/nsswitch.conf", O_RDONLY) = 5
open("/usr/lib/nss_files.so.1", O_RDONLY) = 5
open("/etc/services", O_RDONLY) = 5

it looks in nsswitch.conf bollx, wonder if it has a reading problem, I've copied a good nsswitch file from another. Could this be a new problem for the DP lab boys ?
# 5  
Old 06-04-2003
Please put the information on what you are trying to solve such as version and info on the dataprotector (I checked Sunsolve and they had no documents containing that).

Your original message did not mention dataprotector -
Quote:
anyone ever seen this problem

with /etc/nsswitch.conf forcing the system to look in files then dns
but the system ignores the files and goes off check the dn servers
The answer for that is yes, some application software actually does not look at nsswitch.conf or /etc/hosts without setting it up to look at them (example: Sendmail - uses DNS only unless you set it up differently).

Your test that Optimus_P asked you to try was sucessful as far as I can see. When you had only dns in the nsswitch.conf your system did not know what testftp was (ping to a IP address will always work since it's not using /etc/hosts or DNS to find out an IP for a hostname). When you put files and DNS in nsswitch.conf, then the ping to testftp worked (it found it in /etc/hosts).

And nslookup will not look at nsswitch.conf as it is a DNS only query tool to check that DNS is working
# 6  
Old 06-04-2003
from your recent post it looks like it is looking in files befor dns.

keep in mind some untilities like nslookup connect to a DNS server to get replies so if your query is not in the dns tables its not going to find it even if it is in /etc/hosts.

I dont know what data protector is or what it does...

are you haveing a problem w/ that program or is your nsswitch.conf issue?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

DNS Response Issue

Hi, I have a Windows based Domain (abc.com)servers like: 172.30.1.246 172.30.1.247 172.30.3.246 172.30.3.247 On all my Linux servers (/etc/resolv.conf) have a following DNS servers entries: nameserver 172.30.3.246 nameserver 172.30.3.247 But when i ping my Domain (abc.com), it... (5 Replies)
Discussion started by: refra
5 Replies

2. HP-UX

HP-UX DNS issue

Hi All, I'm having some problems with our HP-UX environment. I'm running Oracle EBS on a HP-UX system, and whenever my primary dns server goes down some of my clients can no longer connect. Everything on my windows side continues to work, and clients can reach the internet and other services... (6 Replies)
Discussion started by: agonza07
6 Replies

3. IP Networking

OS X & VPN DNS Issue

I'll try and be brief and detailed. I have a Macbook Pro Retina running Mavericks. When on my network at the office (work) everything local works just fine. Local servers are resolved through our internal DNS settings. For example, we have a fileserver at "fs01". I can connect to it with... (1 Reply)
Discussion started by: jbhardman
1 Replies

4. Red Hat

DNS Resolution Issue

Hello, Having issue resolving DNS using the IP address. Using the server Name it resolves fine. Was wondering if there is any configuration issue. # nslookup xxxxxxxx01 Server: Primary DNS IP Address: Primary DNS IP#53 Name: xxxxxxxx01.local domain Address: x.y.z.123 # nslookup... (1 Reply)
Discussion started by: ikn3
1 Replies

5. Red Hat

dns update issue

i have redhat service as public dns i have added new entry but when i reload the named service i got this error in log the working directory is not writable (1 Reply)
Discussion started by: leganti
1 Replies

6. Red Hat

Issue in DNS set up

:wall:I am a beginer in Linux admin. I have build new DNS setting in my system. Please find the below procedure what I followed to build DNS. but at last when I fired nslookup command, its getting error. I am using RHEL5 OS. Please help me to resolve this below issue.. Advance thanks for... (1 Reply)
Discussion started by: pradipta_pks
1 Replies

7. 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

8. Red Hat

Linux DNS issue

Hi , I have configured OEL 5.3 server on VMware server,installation went fine, however when i am checking host using configured /etc/hosts i am getting following error let me know where it went wrong . I had disabled firewall options and SELLinux. root@oen11g ~]# host oen11g.grid.com ;;... (2 Replies)
Discussion started by: autoconfig
2 Replies

9. Solaris

t2000 DNS issue

I have an issue with DNS on a solaris t2000 When I set up the zones there was an issue with the /etc/resolv.conf, I had made a typo in my DNS server. I only noticed this after creating my new zones. I have corrected this in the global zone and I am now able to ping and nslookup inthe... (2 Replies)
Discussion started by: james dewitt
2 Replies

10. IP Networking

DNS issue.

Hi, We use linux as a DNS server for our local network. ( linuxnol.nollekens.be ) We can ping this machine on all our XP clients like this: C:\>ping linuxnol Until yesterday it was on our XP clients enough to type "ping ibm250" ( our 2de unix server, an AIX ). But after a shutdown of this... (1 Reply)
Discussion started by: progressdll
1 Replies
Login or Register to Ask a Question