This is a discussion on FTP and DNS within the AIX Operating System forums, part of the Unix Operating Systems category; --> When I attempt to ftp to a site (ex: mysite.ftpsite.com), I get an "Unknown host" error. However when I ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| When I attempt to ftp to a site (ex: mysite.ftpsite.com), I get an "Unknown host" error. However when I use the actual IP address (i.e. 12.34.231.241), it goes through just fine. Where do I go to fix this? -Mark -- Posted via http://dbforums.com |
| |||
| sengstock3 wrote: > When I attempt to ftp to a site (ex: mysite.ftpsite.com), I get an > "Unknown host" error. However when I use the actual IP address > (i.e. 12.34.231.241), it goes through just fine. Where do I go to > fix this? The root user needs to set up a readable (644 or 444) file called /etc/resolv.conf with two lines in it: domain your.domain.name nameserver XXX.XXX.XXX.XXX You have to fill in your domain name and the numeric IP address of a nameserver that your machine has a route to. |
| |||
| That is already set up and in fact has 777 permissions: -rwxrwxrwx 1 root system 45 Jan 04 08:44 resolv.conf I can ping my DNS from th UNIX box. Any ideas?? -- Posted via http://dbforums.com |
| |||
| sengstock3 wrote: > That is already set up and in fact has 777 permissions: > > -rwxrwxrwx 1 root system 45 Jan 04 08:44 resolv.conf > > I can ping my DNS from th UNIX box. Any ideas?? First, change it back to 644 or 444. AIX is funny sometimes about permissions. Plus, there's no need to make that file executable. What kind of error messages do you get if you type these commands? nslookup yahoo.com traceroute yahoo.com Are there errors? Are there different errors if you do the same thing with your "mysite.ftpsite.com" address from your original post? Perhaps your DNS server doesn't know about "mysite.ftpsite.com". If that is true, then you need to go after whoever maintains that server. As a last resort, define it in /etc/hosts and forget about DNS resolution. |
| |||
| nslookup works fine for yahoo. Traceroute gives me this: # traceroute yahoo.com traceroute: unknown host yahoo.com nslookup for mysite.ftpsite.com gives this: Non-authoritative answer: Name: mysite.ftpsite.com Addresses: 197.153.155.81, 197.3.165.79 traceroute for mysite.ftpsite.com gives the same result as doing a traceroute on yahoo. -- Posted via http://dbforums.com |
| |||
| sengstock3 <member25238@dbforums.com> writes: > When I attempt to ftp to a site (ex: mysite.ftpsite.com), I get an > "Unknown host" error. However when I use the actual IP address (i.e. > 12.34.231.241), it goes through just fine. Where do I go to fix > this? What does "host mysite.ftpsite.com" If nothing, then you've got a name resolution problem. Someone has failed to add that host to DNS or /etc/hosts -- Todd H. http://www.toddh.net/ |
| |||
| sengstock3 <member25238@dbforums.com> writes: > That is already set up and in fact has 777 permissions: > > > > -rwxrwxrwx 1 root system 45 Jan 04 08:44 resolv.conf FYI: That's bad security. chmod 644 /etc/resolv.conf to prevent group and others from rewriting that at will. -- Todd H. http://www.toddh.net/ |
| |||
| sengstock3 <member25238@dbforums.com> writes: > nslookup works fine for yahoo. Traceroute gives me this: > > # traceroute yahoo.com > > traceroute: unknown host yahoo.com yahoo.com is not a host--it's a domain. Try www.yahoo.com > nslookup for mysite.ftpsite.com gives this: > Non-authoritative answer: > Name: mysite.ftpsite.com > Addresses: 197.153.155.81, 197.3.165.79 That's encouraging. Now the true test is to use host instead of nslooup. > traceroute for mysite.ftpsite.com gives the same result as doing a > traceroute on yahoo. I'm guessing that # host mysite.ftpsite.com is not returning an answer. The question is "why?" What's in /etc/netsvc.conf ? -- Todd H. http://www.toddh.net/ |
| |||
| sengstock3 <member25238@dbforums.com> writes: >nslookup works fine for yahoo. Traceroute gives me this: ># traceroute yahoo.com >traceroute: unknown host yahoo.com This says one of the following is wrong: the NSORDER environment variable, /etc/irs.conf, or /etc/netsvc.conf. That is, nslookup always uses DNS for lookups. Other programs (e.g., traceroute) check to see whether to use files or bind or nis or ldap or studying their belly-buttons. Since nslookup works, DNS must be okay. Traceroute failing says you are somehow telling the normal hostname lookup routines not to us BIND/DNS. Docs for each of these configuration methods can be found by searching at AIX 5: http://publib16.boulder.ibm.com/cgi-...S&viewset=AIX/ AIX 433: http://publib.boulder.ibm.com/cgi-bi...orm?lang=en_US -- Dale Talcott, IT Research Computing Services, Purdue University aeh@quest.cc.purdue.edu http://quest.cc.purdue.edu/~aeh/ |
| ||||
| Originally posted by Todd H. > sengstock3 <member25238@dbforums.com> writes: > > > nslookup works fine for yahoo. Traceroute gives me this: > > > > # traceroute yahoo.com > > > > traceroute: unknown host yahoo.com > > yahoo.com is not a host--it's a domain. Try www.yahoo.com > > > nslookup for mysite.ftpsite.com gives this: > > Non-authoritative answer: > > Name: mysite.ftpsite.com > > Addresses: 197.153.155.81, 197.3.165.79 > > That's encouraging. > > Now the true test is to use host instead of nslooup. > > > traceroute for mysite.ftpsite.com gives the same result as doing > a > > traceroute on yahoo. > > I'm guessing that > # host mysite.ftpsite.com > > is not returning an answer. The question is "why?" > > What's in /etc/netsvc.conf ? > > > -- > Todd H. http://www.toddh.net/http://www.toddh.net/ -- Posted via http://dbforums.com |
| Thread Tools | |
| Display Modes | |
|
|