The tag has no wiki summary.

learn more… | top users | synonyms

-2
votes
1answer
61 views

Serve a single webpage from my IP for a particular host/domain within Windows? [closed]

I am wanting to serve a single webpage from my IP for a particular host/domain within Windows. Is this even possible? Any ideas how to achieve this? Is it possible to have something like this in ...
0
votes
1answer
44 views

How to use pfSense as a firewall in order to assign url whitelists to IP groups

In a corporate network without DHCP, the temporary solution to whitelist a couple of useful sites is to change the hosts file under Windows/System32/drivers/etc/ but since modern sites tend to change ...
0
votes
2answers
24 views

Share /etc/hosts between root machine and containers

I have a Centos machine with OpenVZ containers. For each container I have an alias in /etc/hosts. I would like to be able to share the /etc/hosts between the root and the containers. Is there a way to ...
-3
votes
1answer
40 views

Hosts file to block a website [closed]

I have seen a blog saying that we can block some websites using our hosts file. I have tried the same (shown below), but failed. Entry added in host file as below: 127.0.0.1 www.google.com I ...
3
votes
2answers
284 views

Why not assign the hostname to the loopback address in /etc/hosts?

So I understand that the hostname should (at least in Debian systems) be set in /etc/hostname. To get the FQDN (through hostname -f) the system finds the IP from the hostname through /etc/hosts and ...
1
vote
1answer
179 views

Relation between server_name in nginx sites-available, /etc/hosts file and A-records (solved)

I have the following two server-blocks in my config-file in sites-available: server { listen 80; server_name www.mydomain.be; root /usr/share/nginx/html; index index.html ...
3
votes
3answers
235 views

Deny requests for other domains in Apache 2

Let's say I have xy.com running on a server powered by Apache. It's the default virtual host. Now someone has rewritten his hosts file to redirect yz.com to my server's IP. As my server doesn't know a ...
0
votes
1answer
71 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
0answers
62 views

Hostname aliases in LDAP and phpLDAPadmin

What is the best method of storing multiple hostname aliases in LDAP? Currently, the hosts file I wish to migrate has many entries such as 172.24.3.54 workstation114.example.net wks114 exphost3 ...
0
votes
1answer
36 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 ...
0
votes
1answer
302 views

tftp times out on localhost

On the same server, I can't connect to my in.tftp over localhost name: $ tftp localhost -c put test.file && echo Sent\! Transfer timed out. $ tftp 127.0.0.1 -c put test.file && echo ...
-1
votes
2answers
63 views

name resolution by name in /etc/hosts

I have to check website performance through various webproxies from my Fedora 19 box, and I want to do that by setting a local resolvable name "proxy" to the DNS resolved names for our proxies in my ...
3
votes
2answers
105 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 ...
1
vote
0answers
204 views

Clean RHEL5 build from kickstart adds Public IP to /etc/hosts

Our infrastructure has a Kickstart server which can serve up RHEL6 builds with some post-installation scripting that handles customization and configuration. I'm currently in the process of updating ...
0
votes
0answers
108 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
49 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
793 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 ...
0
votes
2answers
1k views

Modifying /etc/hosts to easily access a domain name (or ip address) for amazon EC2 instance

I previously added into my local(Mac OS x 10.6) /etc/hosts file my server's public ip something like this: 123.123.123.123 myServer to allow me to ssh to myServer without having to remember the ip ...
0
votes
1answer
109 views

Managing hosts and iptables in scalable architecture

Let's say I have a load balancer in front of 3 app servers. Let's say I also have these services available at certain IPs: Postgres server Redis server ElasticSearch server Memcached server 1 ...
1
vote
2answers
3k 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
294 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 ...
2
votes
1answer
842 views

Why does my hosts.deny not work on OSX 10.8? [closed]

For testing it I added these four lines to my /etc/hosts.deny file: # /etc/hosts.deny ssh-agent:ALL sshd:ALL   I waited some time and then I tried to gain ssh access to the loop-back IP address. ...
0
votes
2answers
260 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 ...
1
vote
2answers
114 views

What if I follow Oracle Instructions for hostname [duplicate]

Oracle Docs requiring Hostname to be FQDN. What do you think? Not really what I want to do but... should I? Verifying Host Names Use the following to verify host name settings: For Oracle Linux 4 ...
0
votes
3answers
172 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
260 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
211 views

How do I change the received url in outgoing emails

I've got a cheap and cheerful dedicated server from 1and1 that I use to send emails. The received email header looks like this: Received: from s123456.onlinehome-server.info ...
2
votes
1answer
196 views

Can you point all of a TLD towards Localhost in a hostsfile?

Is it possible to point all of a TLD (like .dev), towards localhost with the hostsfile and without having to set up a local DNS server? Would be awesome for local web development!
1
vote
1answer
380 views

Xcopy and hosts file in windows scheduled tasks

I have some trouble with xcopy or maybe with windows/drivers/etc/hosts DNS file. If I add my xcopy command in a windows scheduled task, xcopy can not resolve server's name stored in hosts file, ...
0
votes
0answers
43 views

Windows Server 2008 R2 - Share via name not working, but IP does work [duplicate]

Possible Duplicate: How to Configure Windows Machine to Allow File Sharing with DNS Alias I have a Windows 2008 R2 Server running AD and DNS. I modified the hosts file so that ...
0
votes
3answers
2k views

puppet content of /etc/hosts template with facter

I have set up a template to set up the content of the /etc/hosts file. Here is my template: 127.0.0.1 localhost.localdomain localhost <%= scope.lookupvar('ipaddress') %> <%= ...
0
votes
1answer
3k views

CentOS 5.8 why does my /etc/hosts file mess up after a reboot?

I'm running CentOS 5.8 (it's the Citrix XVA appliance provided on the website) but having an issue where every time I restart the server, the /etc/hosts file loses the IP address of the server...for ...
0
votes
1answer
46 views

the WIndows hosts file

Can I map a domain to another domain (mirror)? I wish to map php.net to de.php.net, so when I access something like php.net/whatever, the browser will display stuff from de.php.net/whatever (the ...
1
vote
2answers
1k views

Automatically block IP who requests certain URL

One of our client's PHPBB (surprise, surprise) got hacked. I have taken it down by simply changing the directory name for now however the address website.com/forum/* is still getting hits from ...
0
votes
1answer
607 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. ...
3
votes
1answer
506 views

Are there certain specific host file entries that Windows 2008 will ignore for security purposes?

While troubleshooting a network timeout/connectivity WinHTTP issue, I temporarily added a host file entry for: 127.0.0.1 ctldl.windowsupdate.com (The server has no internet connection and the ...
1
vote
1answer
55 views

How to send a direccion to the void using the Hosts file and without using 127.0.0.1?

I have some name address that i want to send straight to the void using the HOSTS file but i don't want to use the 127.0.0.1. How can i do that?. Why?, I want to speed up some proccess but 127.0.0.1 ...
0
votes
1answer
3k views

Windows redirect by port? [duplicate]

Possible Duplicate: Forward Incoming Traffic with Windows hosts file? In Windows you can redirect traffic from a host by using the hosts file. C:\Windows\System32\drivers\etc\hosts ...
2
votes
3answers
3k views

Should 127.0.0.1 and ::1 both be included in /etc/hosts file?

I am new to unmanaged VPS servers and in addition IPv6. Is it necessary to include 127.0.0.1 AND ::1 for localhost in /etc/hosts files for IPv6 enabled servers, or is ::1 alone enough?
0
votes
3answers
250 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
2answers
300 views

Puppet write hosts using api call

I'm trying to write a puppet function that calls my hosting environment (rackspace cloud atm) to list servers, then update my hosts file. My get_hosts function is currently this: require 'rubygems' ...
-3
votes
3answers
309 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 ...
-3
votes
1answer
881 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
330 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
5answers
4k views

Not able to get hosts file working on my Linux server

I have Ubuntu 11.10 running on VirtualBox and I've set up a virtual named server. I'm able to access this site from Windows 7, but I'm not able to access the site from Ubuntu. My HOSTS file is ...
3
votes
1answer
1k views

Where is the host file located on OpenVMS systems?

Hosts (file) entry on Wikipedia has a table listing the location name of the hosts file (which maps hostnames to IP addresses) on various systems. Where is this info stored on OpenVMS systems?
0
votes
1answer
298 views

Redirect a url to a different server

I'm looking for a way to redirect any url I visit on my computer (Mac), say www.example1.com/a/b/[\d]+, to another url www.example2.com/a/[\d]+. I don't want this to be on the IP level, just for that ...
0
votes
1answer
214 views

Multiple virtual hosts on localhost for development

I'm using Xampp (Apace 2.2.20) on mac os lion for development. I have a number of CMS projects and i want to access them by going to cms1.localhost, cms2.localhost, cms3.localhost etc Currently, with ...
1
vote
1answer
1k views

Windows 7 admin can't edit hosts file anymore

The question is simple. Suddenly I can't edit my hosts file on win7 anymore. I am running notepad as administrator, i get access denied saving the file. Under the security tab of the file it says ...
2
votes
3answers
199 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 ...