0
votes
1answer
66 views

Different DNS name resolution for same server [closed]

I am working on an internal facing wiki that is hosted on a linux box in the office that also holds our backup-server roll. The name of this server is 'backup-server' and DNS resolves this to the ...
3
votes
2answers
75 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 ...
-2
votes
1answer
31 views

Linux DNS: expand name with a choosen domain [closed]

I need to expand a random name with a choosen domain. Example: nslookup abc 127.0.0.1 -> should look for abc.domainchoosen.dom. Suggestions?
0
votes
1answer
40 views

How to configure DNS for website on one host other domain services on second host?

I want to achieve the following: mydomain.com/webmail, mydomain.com/forums, mail.mydomain.com, etc point to current host A And I wish to point mydomain.com to a new website host: www.mydomain.com, ...
1
vote
3answers
888 views

Bypass DNS Server lookup by using /etc/hosts when using a dynamic IP address

It is my understanding that the need to query external DNS servers for commonly accessed names can be reduced if those commonly accessed names are present in /etc/hosts. Now, I have a situation ...
1
vote
1answer
134 views

Why use FQDN as DNS-server option in DHCP?

I've seen multiple default configurations of DHCP-servers with a FQDN set as the DNS-server option. Doesn't this imply a catch-22, or the need for that DNS-server to be in the hosts file of every ...
0
votes
1answer
74 views

How can I manually set the IP a domain name resolves to without using the hosts file?

On my Windows server, example.com resolves to 1.1.1.1. A software I use resolves example.com expecting 1.1.1.1, but I need to modify this for the domain to resolve to 2.2.2.2 instead. Usually, I ...
4
votes
2answers
9k views

How is DNS lookup configured for OSX Mountain Lion?

If I cat my resolv.conf, I see this message: # # Mac OS X Notice # # This file is not used by the host name and address resolution # or the DNS query routing mechanisms used by most processes on # ...
0
votes
1answer
265 views

Transparent Proxy or VPN that listens on all ports

I'd like traffic to be routed via a proxy or VPN based on a the client's hosts file (or DNS that is given to the client). This doesn't seem like a problem for http traffic on port 80 as a simple ...
-4
votes
1answer
109 views

Hijack DNS on my local Ubuntu machine? [closed]

How can I hijack a DNS entry for an domain name on Linux (Ubuntu 12.04)? I am interested in creating a DNS CNAME alias for domain1.com to domain2.test.com. The problem is the applications uses 5 ...
1
vote
3answers
271 views

wget not working with domain on local machine

Basically - I have some PHP scripts that need to be run as cron jobs. Lets say the script needing to be run is: http://admin.somedomain.com/cron_jobs/get_stats If I run the script from the local ...
1
vote
1answer
295 views

Linux (Ubuntu): Setting hostname on internal network

I've got an Ubuntu Linux server with a WiFi card. When I boot my computer apache web server starts and the /etc/hosts file lists which lists the following: $ cat /etc/hosts 127.0.0.1 localhost ...
0
votes
0answers
207 views

Hosts file being overwritten by dns

I am on a mac Snow Leopard (10.6.8). Recently had to add an external ip address and host to hosts file because dns has not been sorted yet for the website. Works as expected from home. However in the ...
-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 ...
1
vote
0answers
185 views

Attempting to DNS resolve / relay an IPv6 address for a host

I have a network switch doing IPv6 DNS relay to a Linux box (3.0.4-gentoo #7). The packets (DNS request) are arriving fine at the Linux box. Where I'm stuck now is how to resolve those, either by ...
1
vote
2answers
571 views

Simple DNS Server or Tool for Local Web App Development

When I develop web-apps I sometimes have to hard-code full URLs into my generated markup. Even though one can generally get by using relative URLs a la <a ...
0
votes
2answers
126 views

Create custom host file

I want to create a host file on a custom location (ex. /opt/app/hosts) with the same formatting as the /etc/hosts file. The reason for this is that I want to manually query a DNS server for a ...
6
votes
6answers
3k views

Can a long /etc/hosts file slow DNS lookup?

I'm facing a little question here. I have a long /etc/hosts file. (working in the web, so I'm hosting a lot of sites locally for developping). Let's says it is about 40, 50 lines long. All ...
0
votes
5answers
2k views

How can I keep my /etc/hosts file up to date with multiple ec2 instances

Have any of you come up with a good way to keep the /etc/hosts file on multiple EC2 instances up to date? Instances go down.. some new instances get created... and internal IPs change. How can I make ...
1
vote
1answer
114 views

Domain forwarding or masking on local machine only?

I'm sad to have to ask this question, but I'm not even sure of what to call what I'm trying to do, so Google isn't much help. I'm doing some work on a company website from outside the company's ...
1
vote
1answer
191 views

Set up multiple servers behind a NAT

I am currently trying to set up a network with both a secure webserver and an internal openvpn server. The webserver is running windows 2008 and the vpn network is running the Access server from ...
0
votes
1answer
47 views

Service located on network

I've got a WCF web service that handles a portion of business logic and data access. This service is hosted on a server on our network at our office. Our website, hosted elsewhere, uses this service ...
1
vote
2answers
278 views

How can I set up my Linux (CentOS) box to respond to *.centos?

I have a dev box that runs Apache for lots of different sites. We currently access these through http://centos/project-name. I'd like to switch to http://project-name.centos. I've set up virtual ...
0
votes
3answers
213 views

dns does not work from different drive letters

C:\>ping localhost Pinging Vextor [127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Ping statistics for ...
0
votes
2answers
349 views

connect to a machine inside the intranet from outside with same address used inside

I have a server inside my intranet, in wich i have apache running with some web applications. when i'm at office the url i use to connect is zeus.mydomain.it, it works couse i have in my /etc/hosts a ...
0
votes
4answers
5k views

hostname -f says “hostname: the specified hostname is invalid”. Guess why?

hostname -f says "hostname: the specified hostname is invalid". The hostname (FQDN) specified in /etc/hostname is also listed in /etc/hosts and is pingable. No actual DNS server yet of the host knows. ...
8
votes
5answers
39k views

How to have Windows Server DNS use hosts file to resolve specific host names

[NOTE: The solution of this question is perfect, by something stray away from what the title indicates.] I'm facing a small problem with Windows Server 2003 DNS service. In my corporation, I'm ...
0
votes
3answers
620 views

/etc/hosts file setting for no dns lookup [closed]

Can you explain me what I need to add in my hosts file for no dns look up
1
vote
2answers
211 views

Shorten Long DNS names

Amazon gives us a very long dns names i.e. c-123-123-123-255.compute-1.amazonaws.com Is there a way to map this name into a shorter name i.e. essentially what i want to do is to modify /etc/hosts ...
8
votes
2answers
4k views

hosts file seems to be ignored

I have almost fresh Ubuntu desktop box. OS was installed two weeks ago and updated from karmic repositories. Last week I had no problems with DNS. But this week something had changed. I'm not sure ...
2
votes
3answers
265 views

Alternate to /etc/hosts

We have a server on which we host private services. These services can also be access from rest of the world but there is slight difference on application level based on from which IP request came. ...
2
votes
2answers
835 views

Hosts file vs DNS for data center management

What are the cons and pros of using hosts files (updated via Puppet for example) vs DNS for data center machines management? I'm looking to switch from the tedious IP scheme, but concerned about ...
5
votes
7answers
33k views

What can cause a DNS lookup to ignore a hosts file entry?

I'm having a DNS resolving issue that is affecting the performance of my locally hosted web site when browse it on my local machine. If I attach my network's DNS suffix to my local machine name when ...
3
votes
3answers
247 views

My DNS works! But, what is the simplest way to add something to it?

This is my current DNS example.com.db zone file. I followed a tutorial. It works, because when I point to this DNS from another server via resolve.conf, it will actually forward me to the right IP ...
0
votes
4answers
2k views

Wildcard *.local hosts to apache on OS X

I would like to route all my *.local or *.dev domains to a specific IP, either the IP of my Ubuntu VM or localhost. Is this possible? Can I use the /etc/hosts file? I am running Mac OS X Snow ...
3
votes
1answer
5k views

What's required for a nameserver to be registered?

I'm trying to change nameservers for some of my domains at GoDaddy, but I occasionally run into "Nameserver not registered" problems, and then I'm not allowed to set the nameservers. Here are the ...
12
votes
12answers
17k views

HOSTS file being ignored

My (Windows XP, Professional, v2002, SP3) workstation is completely ignoring my hosts file. Here is the code in my hosts file: 127.0.0.1 localhost 172.17.1.107 wiki But, when I open a ...
0
votes
5answers
154 views

How to have a webserver resolve urls in php files?

Instead of having the client resolve URLS, I want to let my webserver do that. So ideally, I could turn this: <a href="http://www.long-domain-name.com/"> into this: <a ...
12
votes
3answers
20k views

Do entries in local 'hosts' files override both forward and reverse name lookups?

If I have the following entries in a hosts file: 192.168.100.1 bugs 192.168.100.2 daffy.example.com 192.168.100.3 elmer.example.com. Will IP->name resolution attempts by local utilies (I ...
0
votes
5answers
603 views

Best way to keep a hosts file updated

I have a situation where I have a dual homed VOIP server that uses two internet connections. The solution works fine except for one problem, when the primary internet connection goes down, so does ...
6
votes
2answers
336 views

How do I setup a HOSTS file on different operating systems?

Please provide examples of how this can be setup on client and server versions of various operating systems.