×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

domain resolve issue ping hostname

domain resolve issue ping hostname

domain resolve issue ping hostname

(OP)
I am pretty sure i know whats wrong i just dont know how to correct it!

I have a linux live cd that i have added the cisco vpn client to which connects fine , thing is i cant resolve addresses

i would like to be able to ping web1 or web2 etc

but i have to enter the full domain name web1.mydomain.uk
i have checked /etc/resolv.conf and it contains both the remote locations dns servers which are reachable.

i have edited the /etc/hosts file to contain the following

127.0.0.1 localhost vpn-cd vpn-cd.mydomain.uk

but still if i ping web1 it doesn't resolve.

i was expecting it to see what its own domain was an append it to the end of web1

any ideas ?

many thanks  

RE: domain resolve issue ping hostname

You might try explicitly configuring resolv.conf to search your domain.  Add a line to resolv.conf which reads:

search mydomain.uk

 



Want to ask the best questions?  Read Eric S. Raymond's essay "How To Ask Questions The Smart Way".  TANSTAAFL!

RE: domain resolve issue ping hostname

It sounds to me like the default domain name is not defined, but I don't know how to fix that.

RE: domain resolve issue ping hostname

(OP)
i have created a bit of a bodge script , i tail the resolv.conf and echo the domain i want and save it back to resolv.conf

this way the dynamic dns addresses are obtained at boot time its only when i attempt to connect to my vpn that the domain name is entered into the file so upon susscessful connection i can ping web1 etc.

thanks for your help guys  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close