Tag Info

Hot answers tagged


There isn't a great deal of difference between the two; 127/8 (eg: => are all bound to the loopback interface. The reason why is documented in the Debian manual here: http://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution Ultimately, it is a bug workaround; the original report is here: ...


Install dnsmasq (I do this on all my Linux desktops as a DNS cache anyways). In dnsmasq.conf add the line: address=/localhost.com/


Jon Postel picked 127. Before the Internet Assigned Numbers Authority took over (RFC 3232) around the time of his death (RFC 2468), he was the "czar" of Internet address and port assignments, having essentially nominated himself for the task. (RFC 349) Back in the early 1980s, when IPv4 as we know it was first being hashed out, existing networks were given ...


It is not possible to specify wildcards in the /etc/hosts file. Either specify the required hostnames explicitly or alternatively set up a local name server with the appropriate rules.


For me, setting the ServerName property in httpd.conf fixed the delays (they were up to 10 seconds at worst): # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered ...


From the RFC: - This block is assigned for use as the Internet host loopback address. A datagram sent by a higher level protocol to an address anywhere within this block should loop back inside the host. This is ordinarily implemented using only for loopback, but no addresses within this block should ever ...


I have written a dns proxy in Python. It will read wildcard entries in /etc/hosts. See here: http://code.google.com/p/marlon-tools/source/browse/tools/dnsproxy/dnsproxy.py


To sum up the linked-to information: It is (debatably) useful to have an entry in your /etc/hosts translating the machine's fully-qualified domain name into its permanent IP address. debian-installer, and more specifically, its netcfg component, currently (up to March 2013 at least) creates this entry. If the machine is not known to have a permanent IP ...


Inside the Service tag change: <Connector port="8080" protocol="HTTP/1.1" ... to: <Connector address="" port="8080" protocol="HTTP/1.1" ... For more information: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html


There's a WIKI Entry about exactly this issue on the wireshark homepage. They also mention specifics about the loopback interface regarding Windows - you could be running just into that.


The issue was with Apache's main settings file httpd.conf. I found this: There are three ways to set up PHP to work with Apache 2.x on Windows. You can run PHP as a handler, as a CGI, or under FastCGI. [Source] And so I went into the Apache's settings and saw where the problem was: I had it set up as CGI, instead of loading it as a module. This caused ...


Use an IP-binding to that should activate a listening port on "localhost". On the client side do not use "localhost" - use "" instead. Many clients have an internal alias that makes them connect to the socket if you specify "localhost" as target. mySQL is strange.


MySQL will try to connect to the unix socket if you tell it to connect to "localhost". If you tell it to connect to you are forcing it to connect to the network socket. So probably you have MySQL configured to only listen to the network socket and not to the file system socket. What exactly is wrong with your unix socket is hard to tell. But I ...


Yes, is called loopback network and is always available. This address points to the machine itself. EDIT: To answer the second part of the question: Yes, machines A and B can be on the same network (but NOT the same as, while loopback is virtual) if the netmask is set properly. Use IP calculator to get what you need.


That's the default Apache HTTP index page. It's there to indicate you've correctly installed and enabled httpd.


In Linux and other *nixes, MySQL will assume you want to use a socket if you connect to the host "localhost" (which would be the default hostname). You can override this in 3 ways: 1) Specify a different hostname like (mysql -h or your server's real hostname 2) Specify that you want to use TCP and not a socket (mysql --protocol tcp) ...


I had the very same problem. Setting localhost redirect to in hosts file did not help. Optimizing MySQL server did not help (InnoDB -> MyISAM, changing many cache related directives in my.ini). Then I used web webgrind and narrowed down the problem to "new PDO(...)" call. Changing mysql:host=localhost;dbname=dp-ui;charset=utf8 to ...


You need to set up a DNS server and have each client use it for resolution. The server itself can be something as "light" as dnsmasq or as heavy as BIND.


Change the ^HOSTNAME line in /etc/sysconfig/network Change the hostname (FQDN and alias) in /etc/hosts Run /bin/hostname new_hostname for the hostname change to take effect immediately. Run /sbin/service syslog restart for syslog to log using the new hostname. A reboot is not required to change the system hostname, of course you should reboot in order ...


The "do not change" warning refers to changing the name "localhost". Many software packages expect "localhost" to resolve to Adding more entries is not a problem. You can add the entries after the host (as shown by Iain), or add additional lines. For example: localhost api.localhost testsite2.localhost On ...


I found the problem. The /etc/hosts file had overly restrictive permissions -rw------ (I believe that is 600 octal). Changing that to mode 644 fixed the problem. My tests with ping were done with ordinary priv, and the hosts file was unreadable. My original problem was getting postgresql to startup properly; it starts with root privilege, but apparently ...


For some reason you are missing the http.conf which usually has no content. Please try to create it and restart your web server touch /etc/apache2/httpd.conf


The page "It Works" is the default apache Vhost. If you are getting this, it has nothing to do with the hosts file. Will need more information on the url you are trying to access and what you expect to happen.


The hostname www.circle.nu is mapped to IP address in their DNS. is usually interpreted as the "default network", and in your case that's why you're getting sent to localhost.


iptables -t nat -A OUTPUT -d www.kunde.de -p tcp -m tcp --dport 445 -j REDIRECT --to-ports 1445 Because locally originated packets go through OUTPUT, rather than through PREROUTING.


What I did to disable local delivery. I'll be using the example.com domain. Requirements: example.com A entry pointing to IP address assigned to one of the eth interfaces. /etc/hosts defining example.com assigned to the very same IP address as above example.com MX records pointing to Google servers (ASPMX.L.GOOGLE.COM, etc) default sendmail installation ...


Yes it is possible and quite common, you want name based virtual hosts. There are basically two types virtual hosts, name based and ip based. It gets more complicated with name based if you intended to run SSL, but it is still possible. It works by looking at the HTTP header in the request to see the domain name being requested.


You may have IPv6 enabled, its very possible localhost resolves to the ipv6 localhost, that is not defined in your msql config. ive also had a problem where i had to add 'localhost' in place of '' to the allowed subnets for that user, dont understand why (i was using ipv4 and it was a while ago) but its worth a try.


Isn't this really a client issue ? If using the mysql program You can use the --protocol switch. From the man page --protocol={TCP|SOCKET|PIPE|MEMORY} The connection protocol to use for connecting to the server. It is useful when the other connection parameters normally would cause a protocol to be used other than the one you want. ...


You can't access localhost from another computer because localhost is, as the name implies, localhost/loopback/ You need to access it via it's LAN ip address. http://en.wikipedia.org/wiki/Localhost

Only top voted, non community-wiki answers of a minimum length are eligible