0
votes
1answer
53 views

Can winbind influence name resolution in Linux

I have to Linux boxes on vagrant, the have the same /etc/resolv.conf and /etc/hosts, but one is using winbind to do SSO with Active Directory. When I try to resolve the domain controllers with: dig ...
0
votes
1answer
31 views

How to resolve external host names in a centraliced place

Our LAN is connected to another company's LAN and we have access to some of their servers, but not to their DNS server. When the users need access to some host by name, the solution I have is to go to ...
3
votes
2answers
76 views

make dnsmasq ignore specific entries in /etc/hosts

I've set up a machine running dnsmasq, essentially serving its /etc/hosts file. However, there are specific entries which I want in that machine's /etc/hosts, but I don't want served. How can I make ...
0
votes
0answers
72 views

How to make dnsmasq resolve a domain based on where a query were made from

On my phone, I'm pointing to my PC address for DNS server (dnsmasq), and it is working for normal DNS queries but not for local. I can see from a ping app that local domains are resolved to 127.0.0.1, ...
1
vote
1answer
48 views

Does my production web server need its domain name in its hosts file? [closed]

I just cut over DNS for a .com web site to become live. Does my production web server need its domain name in its hosts file? Like this 127.0.0.1 www.mydomain.com mydomain.com 127.0.0.1 ...
0
votes
3answers
556 views

Guests can't access KVM host server by name although nslookup and dig returns correct record

So I have a KVM host that also runs an apache server with some yum repos. The VM guests are connected to the default virtual network, which is configured to offer DHCP and forwarding with NAT on ...
1
vote
2answers
2k views

Is it possible to have round-robin DNS with /etc/hosts file?

Is it possible to have round-robin DNS with the follwing configuration in /etc/hosts? 192.168.4.10 shaakunthala.local 192.168.4.20 shaakunthala.local I'm on Linux.
2
votes
1answer
196 views

Host name resolution order - Changes to SYSTEM.INI not reflecting

I added the below lines to my system.ini file to ensure that all host name resolution will happen through hosts file only and all other methods are ignored. [DNS] HostsPriority=1 But, the change ...
0
votes
2answers
234 views

HOSTS ignored when disconnected [closed]

Problem I’m seeing a strange and extremely frustrating problem. Any system that is not connect to the Internet (Windows 7 shows the no Internet access icon because it cannot constantly ping ...
0
votes
3answers
167 views

Use SSH hostname aliases in browser

I set up hostname aliases in .ssh/config, which works great: Host my-web HostName 515.346.96.21 So I can do this: ssh my-web But in a browser, I still need to type in "http://515.346.96.21". ...
0
votes
3answers
222 views

Local alias in /etc/hosts not working anymore without internet connection

I have my developer machine on which I work on web applications running under apache on Debian testing. Now I like to be able to have myApp as domain name and not to have to use localhost or ...
0
votes
1answer
537 views

Domain Controller without DNS on remote site fails to authenticate

We have a domain controller at our remote site that doesn't have any DNS server or DNS replication. I have just setup a client machine that was using a local account to instead use a domain account. ...
0
votes
3answers
229 views

How do I configure my router as a DNS server?

I have a question regarding router configuration: How can I configure it to direct certain packets sent to certain addresses (like Facebook, Youtube and other procrastination sites) to be sent to a ...
-3
votes
3answers
292 views

DNS resolves without adding the host IP and name to etc/ hosts file

Is there any way to resolve hostnames without added to hosts file? In order to access internal site in my company I have to add the host-name and IP in the .../etc/hosts file. Is there any way to add ...
-4
votes
1answer
758 views

D-Link override DNS for all computers on network? [closed]

Is it possible to do something like what /etc/hosts does for one computer, for all computers on a local network? I'm using a D-Link DIR-655 B1. If necessary I'd be fine installing new firmware, but ...
3
votes
1answer
295 views

Lightweight local DNS solution for a developer machine to replace fiddling with /etc/hosts

In our setup we assign a separate domain name for each TCP service for configurability. On production cluster we use BIND to manage it. But on developer machine this currently translates to a bunch of ...
2
votes
3answers
191 views

Accessing multiple sites from test environment using hosts file

I've got a Windows Server test environment installed as a VM on another company server (e.g. 192.168.2.30) which currently hosts about five different test sites. My local machine contains a line in ...
0
votes
1answer
232 views

Is there an easy way to setup “example.com” MX records?

I'm used to use /etc/hosts to fake "example.com" or other domains to point to my local web servers to make tests. I'm trying to do some filtering tests on a multi-domain postfix and I need to fake ...
4
votes
2answers
2k views

how to modify /etc/hosts from shell scripts?

I need to change some hosts entries - for example, there's a desire to update hosts to have active.vm host match the IP of currently booted VM (with some testing appliance). Guest software within VM ...
1
vote
2answers
314 views

How to use the hosts file to make google.com resolve to bing.com on a single machine

I am having a little trouble understanding how to manipulate the hosts file. I am using IIS 7.5 and Windows Server 2008 RC2. How can I make any requests from my machine to google.com resolve to ...
4
votes
4answers
936 views

change ip to dns in /etc/hosts on Ubuntu 11.04

in ubuntu 11.04, i'm trying to change dns to force it to point to another server let's assume the domain name is www.mysite.com and the ip 96.32.66.xx i changed /etc/hosts but when i open the browser ...
0
votes
1answer
451 views

Temporarily change etc/hosts file on a windows workstation

Is there a tool, that allows an individual to temporarily switch between different etc/hosts configurations, without setting up a dns? Example: I would like to quickly change the etc/hosts config ...
1
vote
2answers
114 views

Use hosts file to support DNS server on Windows 2003 Server

Is it possible to make the Windows 2003 Server Dns Server lookup domains in the hosts file also? This would be nice to implement a corporate block list for all those ad sites, and for having a central ...
0
votes
1answer
333 views

Simulating IP addresses for testing (not quite same as IP spoofing) for development purposes?

In my previous question, DNS simulation for testing purposes?, I'd asked about simulating DNS. Is there a way to simulate an IP address within Windows for the virtual hosts in my previous question? ...
0
votes
2answers
202 views

Should a server's hostname have a DNS A record?

I have a VPS which is currently serving 2 websites and a game server. The "primary" website - my website - is robinjam.net. I've read multiple conflicting tutorials on the internet regarding ...
0
votes
2answers
4k views

How to fix windows 7 dns override of local hosts file?

I ran into the following problem under Windows 7: name resolution uses the result from a DNS lookup instead of using what I have in my local hosts file. This is different from previous versions of ...
2
votes
2answers
739 views

Alternative to HOSTS file for virtual hosts?

I am running Windows 7, Apache 2.28 is my version of Apache, localhost and virtual hosts run well. Only one issue - what's the best alternative to using the HOSTS file? I tried DNSKong, but not sure ...
0
votes
2answers
229 views

/etc/hosts file doesnt forward to localhost for subdomain begins with www [closed]

On my desktop I use /etc/hosts file like as below for developing purpose 127.0.0.1 a.example.com 127.0.0.1 www.a.example.com 127.0.0.1 adsense.a.example.com 127.0.0.1 foto.a.example.com ...
13
votes
3answers
12k views

How do I add IPv6 address into System32\drivers\etc\hosts?

There is already by default, and it works (Win 7): ::1 localhost This also works (testing with ping): ::1 hosta But when I'm trying to add something non-loopback, it ...
2
votes
3answers
1k views

How do I re-map a hostname to another?

How can I re-map one hostname to another, similar to how one would re-map a hostname to an IP in /etc/hosts? For instance, how could I map oneheckofalongdomainname.com to a.com on my local machine? ...
1
vote
2answers
203 views

Browser-level DNS settings, to work like the hosts file at system level

The web application we develop is doing certain things depending on the domain and subdomains in the address. To be able to develop and test everything on a local environment, one would need to bind ...
2
votes
3answers
291 views

Editing /etc/hosts

I just signed up for a VPS with Linode, and am going through the beginners' setup instructions, but am a bit lost with the editing for /etc/hosts. It suggests that I edit it as follows (where ...
1
vote
2answers
805 views

Is there a tool to export/import Windows Server DNS settings to/from the hosts file?

We have many rules in our internal DNS server and I'd like to use them in my local hosts file. Is there any utility to do this kind of conversion? Update: The DNS server is Windows Server and the use ...
4
votes
4answers
3k views

Why is my hosts file not working?

I've been using the hosts file to for local website development, and it's recently stopped working. No entries other than localhost resolve. I've simplified to test, so it now contains only ...
0
votes
2answers
211 views

Problems pointing site to site in Hosts file

I'm on my localhost PC. I need to add an entry that maps our public site to our dev server. I tried several things with no luck: 192.168.1.40 oursite.com // where the IP here is our internal dev ...
0
votes
2answers
211 views

server-migration issues : how i test my site before DNS A record transfer

I am doing a Server migration of virtual server (host 15+ sites ), I did all file transfer & other configuration , Now I want to test my sites before actual A record transfer , I know I have to ...
6
votes
8answers
51k views

Point Multiple IP Addresses to a Single Host Name

In Windows System, there is this file at C:\WINDOWS\system32\drivers\etc\hosts. This file allows us to default a specific IP address to a host name. The issue now is whether I can set multiple IP ...