URL Problem

Taking care of your Linux box.
Post Reply
zakaferoz
Lance Naik
Posts: 15
Joined: Fri May 20, 2005 3:23 pm
Location: Karachi
Contact:

URL Problem

Post by zakaferoz »

AOA Everyone

My email server name is xyz.com.pk and our website which is hosted at website hosted provider its name www.xyz.com.pk.

When we try to access website on our LAN under squid service my server generated a error.

Error is:
While trying to retrieve the URL: http://www.xyz.com.pk/

The following error was encountered:

Unable to determine IP address from host name for www.xyz.com.pk

The dnsserver returned:

Name Error: The domain name does not exist.

This means that:

The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.

Note: When we are connected with dailup without LAN, we access our website.

Kindly help me to solve this problem.
Regards
nomankhn
Colonel
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Post by nomankhn »

you should setup your /etc/resolv.conf w.r.t your isp.

Regards,
Noman Liaquat
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: URL Problem

Post by lambda »

zakaferoz wrote:Kindly help me to solve this problem.Regards
if you want us to help you with your dns problems, don't hide any of the details.

what is your real domain name?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
manwerjalil
Lance Naik
Posts: 28
Joined: Wed Apr 30, 2008 10:44 am
Location: Karachi
Contact:

Post by manwerjalil »

Dear,

The problem is that your domain is registered on ISP DNS with HOST A Record xyz.com.pk but not registered in your local network DNS server with same record thats why u can't access your domain using naming convention without creating HOSTA record in ur local DNS Server.

Please create HOSTA record with website server IP Address. if you are not using local DNS server than you have to mention domain name with its ip address for linux users in /etc/reslov.conf and for windows users in C:\windows\system32\drivers\etc\hosts file

record should be created like this

/etc/resolv.conf
192.168.0.1 xyz.com.pk

windows hosts file
192.168.0.1 xyz.com.pk


Thank you
Anwar
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear zakaferoz,
Salam,

I agree with lambda. If you want us to help you with your DNS then let us know your domain name so we can check your current nameservers for your domain.

Best Regards.
Farrukh Ahmed
zakaferoz
Lance Naik
Posts: 15
Joined: Fri May 20, 2005 3:23 pm
Location: Karachi
Contact:

URL Problem

Post by zakaferoz »

AOA - Everyone

In this type of case you can mentioned your browsing IP (which is provided by ISP) in squid.conf script.

Example:

dns_nameservers 100.200.0.20

Regards
azfar
Captain
Posts: 598
Joined: Tue Mar 23, 2004 1:16 am
Location: Karachi
Contact:

Post by azfar »

If your domain is properly registered and hosted to any web host then you dont have to do anything in your local dns server. Squid should able to resolve it. Make sue your machine and squid are able to resolve dns. else tell su your domain name so we can check its dns configuration.
Azfar Hashmi
Email : azfarhashmi@hotmail.com
nasacis
Battalion Havaldaar Major
Posts: 269
Joined: Sat Dec 13, 2003 3:58 pm
Location: Faisalabad
Contact:

Post by nasacis »

create A record in your local DNS and point to public ip in A record, it will also solve your problem
Nafees Ahmed
Cell: +92.300.8653568
UAN: 041-111432432
Nexlinx Faisalabad
www.nexlinx.net.pk
nafees29@gmail.com
Post Reply