0
votes
1answer
40 views

Apache - server not resolving by /etc/hosts if I have not internet connection

I have configured many virtualhosts in my current apache2 server, in my local machine (Ubuntu 13.10). Those are different local sites, with domains which are set in my /etc/hosts: 127.0.0.1 ...
0
votes
2answers
307 views

How can I use a local DNS server?

I need to test a few websites on my local network. I've already setup a DNS server with bind9 for my internet domains, and that works. I can also add a few domains to the /etc/hosts file, so I can ...
1
vote
1answer
230 views

Can't resolve local hosts

To start with, my Linux or networking knowledge is fairly basic, so it's probably best to assume that I know nothing. I've been trying (for my own furtherance) to put together some sort of home ...
4
votes
4answers
9k views

Why is the /etc/hosts file not working?

I have been having problems with this for a while and have tried everything I know, so I figured it was finally time to ask for some help. Any edit I make to /etc/hosts just doesn't work. Example: ...
4
votes
1answer
121 views

Why is this single-word address being resolved? [closed]

I'm running Ubuntu 12.04. On my work network, there's a single-word address (let's call it foobar) that is responding to pings and HTTP requests, only from my machine. The address is not a TLD, just a ...
0
votes
1answer
374 views

What happen when 'unable to resolve host' still exist on terminal?

After editing etc/hosts and hostname, 'unable to resolve host' still exist on my terminal, I still don't know what is the cause. Although my computer and my terminal runs so well. I'm only using ...
3
votes
1answer
6k views

/etc/hosts file not being used before DNS server query

I have upgraded to Ubuntu 12.10 and I have made entries in /etc/hosts, but instead of looking into the hosts file, queries to my configured DNS server are being made first. How can I make Ubuntu ...
1
vote
1answer
3k views

'/etc/hosts' , http links are redirecting, but https links are not redirecting

I edited /etc/hosts file and entered below information : 127.0.0.1 test.com //working 127.0.0.1 https://test.com //not working . from the above info, http://test.com is redirecting to ...
0
votes
0answers
43 views

Resolve specific IP addresses to localhost in 12.04 [duplicate]

Possible Duplicate: How do I add a DNS server via resolv.conf? I used to simply add static DNS entries in my /etc/hosts file. This is not working with 12.04. How does one add static DNS ...
0
votes
1answer
400 views

localhost subdomain wildcard

I'm trying to have *.localhost pointing at 127.0.0.1. I read this post which is quite recent and looks promising but dnsmasq can't bind port 53: * Starting DNS forwarder and DHCP server dnsmasq ...
0
votes
4answers
1k views

why is chrome resolving domain names differently than ping which is resolving differently than ssh?

When I go to me.com in chrome it tells me that domain can't be found. When I go to me.com with ssh, it connects to that server. When I try to ping me.com it pings localhost. I want me.com to ...
2
votes
1answer
765 views

Domain name isn't assigned from DHCP when booting from Live CD

I downloaded the ubuntu 10.10 ISO image for AMD64. When i start the ISO ubuntu gets an IP address from my DHCP server. NetworkManager updates /etc/resolv.conf according to the DNS config provided by ...
8
votes
1answer
13k views

Why does my name resolution hit the DNS even with a hosts file entry?

I'm running Ubuntu 10.04.2 LTS Desktop. Being a web developer, naturally I created a "me.com" in my /etc/hosts file. Unfortunately, my name resolution is going out to the DNS before first checking my ...
8
votes
3answers
31k views

How to edit hosts.deny and hosts.allow?

I want to block some hosts in Ubuntu, so how could I edit hosts.deny file to block some hosts like example.com. And one more thing I have installed dnsmasq in Ubuntu, so can I check the entries of ...