Unix Technical Forum

FTP and DNS

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


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 09:00 PM
sengstock3
 
Posts: n/a
Default FTP and DNS


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 09:00 PM
Al Sharka
 
Posts: n/a
Default Re: FTP and DNS

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 09:00 PM
sengstock3
 
Posts: n/a
Default Re: FTP and DNS


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 09:01 PM
Al Sharka
 
Posts: n/a
Default Re: FTP and DNS

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2008, 09:01 PM
sengstock3
 
Posts: n/a
Default Re: FTP and DNS


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-04-2008, 09:01 PM
Todd H.
 
Posts: n/a
Default Re: FTP and DNS

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-04-2008, 09:01 PM
Todd H.
 
Posts: n/a
Default Re: FTP and DNS

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-04-2008, 09:01 PM
Todd H.
 
Posts: n/a
Default Re: FTP and DNS

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-04-2008, 09:01 PM
Dale Talcott
 
Posts: n/a
Default Re: FTP and DNS

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-04-2008, 09:03 PM
sengstock3
 
Posts: n/a
Default Re: FTP and DNS


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com