Tag Info

Hot answers tagged

16

Keep reading the LogFormat documentation and you'll find: %...{Foobar}i: The contents of Foobar: header line(s) in the request sent to the server. Which means you could include in your configuration: %{Host}i The %v and %V directives may also get you what you want. %v will always be the value of ServerName (the "canonical name" of ...


14

If you only want the name for ssh and ssh only, you can add a name to your ssh config in ~/.ssh/config As an example, your config file could look like this: Host database HostName <real IP address or hostname here> User username Then you can type ssh database on the command line and ssh will automatically do ssh username@ip.address for you. ...


12

I have done exactly what you speak of before. I found the industry has a very strong barrier to entry, but here is what I did. Rented a dedicated server with a control panel, in my case Plesk (linux or windows) Bought a domain name to be the "home" of my hosting business The server you buy will likely come with 4-7 IP addresses, you can use these to ...


11

The SQL query SHOW VARIABLES WHERE Variable_name = 'hostname' will show you the hostname of the MySQL server which you can easily resolve to its IP address. SHOW VARIABLES WHERE Variable_name = 'port' Will give you the port number. You can find details about this in MySQL's manual: 12.4.5.41. SHOW VARIABLES Syntax and 5.1.4. Server System Variables


10

Yes you can. Even for some Windows 2003 workloads as little as 384MiB suffices, so 512MiB is a pretty good estimation, be it a little high. RAM should not be a problem, neither should CPU. A 100 VMs is a bit steep, but it is doable, especially if the VMs are not going to be very busy. We easily run 60 servers (Windows 2003 and RHEL) on a single ESX server. ...


10

It's the default behaviour of dig not to use the search-option. From the manual page: +[no]search Use [do not use] the search list defined by the searchlist or domain directive in resolv.conf (if any). The search list is not used by default. Edit: Just add +search to make it work, like dig +search myhost.


8

Use dig(1) with the +short flag instead: $ host -t txt google.com google.com descriptive text "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all" $ dig -t txt google.com +short "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all" If you want to remove the quotes, just filter the output through sed: $ ...


7

Yes, this is possible. All you have to do is create an A record in your domain.net DNS for blog.domain.net which points to the IP address of the server at Linode. Here is a link to the Media Temple documentation for this.


7

When you enter a URL without a port, port 80 is implied. No browser that I know of has any way to change this behavior; if you want to use port 3333, then you'll need it in the URL.


7

as per uSlackr. It appears that currently both of your name servers are not answering.. qweop.com. 172800 IN NS ns01.000webhost.com. qweop.com. 172800 IN NS ns02.000webhost.com. ;; Received 108 bytes from 192.42.93.30#53(g.gtld-servers.net) in 83 ms ;; connection timed out; no servers could be reached` It probably works for you, since ...


7

Here are some things I can think of:- You deploy sudoers via a central source using some configuration management system. The file exists on an NFS share mounted by multiple hosts. A particular system uses many UTS namespaces (different containers have different hostnames) You may intend a particular set of permissions on a particular hostname (which ...


6

Most services that use /etc/hosts.allow will notice changes to the file without a restart.


6

One major problem with a large environment like that would be disaster prevention and data protection. If the server dies, then 100 VMs die with it. You need to plan for some sort of failover of the VMs, and to plan for some sort of "extra-VM" management that will protect your VMs in case of failure. Of course, this sort of redundancy means increased cost ...


6

What you're trying to accomplish is doable through the use of mod_proxy, which is not commonly enabled for shared-hosting environments because of the rather significant security problems it can allow if not locked down right. If you don't do it right, you'll provide an open proxy for nefarious people to surf the internet using the server's IP address. If ...


6

Best practices dictate that you set your hostname to something meaningful - usually the FQDN of the server (if the system has a role where it's associated with multiple FQDNs -- like a shared web hosting server -- you would typically set a hostname like webhosting001.provider.com for its local hostname, with a corresponding DNS entry). This is done for a ...


5

My WHOIS results show these two name servers: RAPNET.DIAMONDS.COM NS.DIGEX.NET The name servers 'exist' in the WHOIS results but no listed name server responds with records for this domain. Check the output of both host and dig using the two servers listed in the WHOIS as well as the other on you have listed in your question: Using host: dave@dev:/var$ ...


5

The hosts file only binds host names to IP addresses. By default HTTP runs over port 80. So by binding a host name to 127.0.0.1 and then hitting the host name in your browser (over HTTP) you are implying port 80. You would need to set up a proxy server that listened to port 80 and forwarded the requests on to port 8080. Your web server would still have to ...


5

You can set up a reverse proxy to serve at port 80, and forward all requests to 8080. Apache is one of the web servers that can do this for you. There is a basic reverse proxying example in the mod_proxy documentation.


5

Because CDN'ing www is a Good Thing (TM). We do this at www.huffingtonpost.com, its good for offloading ~90% of all http requests to our site (not an estimate, comes from the graphs). If developers just use a small handful of basic tricks such as ajax loading dynamic stuff for individuals and appending timestamps or svn checkout numbers to urls as a "just ...


5

The "How Do we know" page for DownorNot implies there is a DNS issue. The status for Just ping also says it cannot resolve the hostname. I am unable to resolve the hostname. How is your DNS handled?


5

On separate domain/DNS, web, and e-mail providers: It is not necessarily a bad thing to have your DNS, web hosting, and e-mail hosted by three different entities. There are good reasons for this: Separating your domain registration and DNS services from your web hosting provider ensures that your web host won't have an incentive to make it difficult for ...


5

[Frankly, you have so much pretend data here that this is probably going to be unnecessarily confusing. I'll try to keep everything straight.] If I understand your question correctly, you currently have the following DNS records: example.com. A 1.2.3.4 example.com. MX 10 example.com. www.example.com. A 4.5.6.7 ...and a bunch of ...


5

You need a ServerName directive in the <VirtualHost> block, so that Apache knows when to serve content from that virtual host.


5

Try prepending your script with: echo y | plink -ssh root@REMOTE_IP_HERE "exit" This will pipe the y character through stdin to plink when you get the Store key in cache? (y/n) prompt, allowing all further plink commands to pass through without the need of user input. The exit command will close the SSH session after it has been established, allowing the ...


5

Just because a server or computer has a port open, does not mean it will respond to ICMP packets. Many in fact are specifically configured to not do so.


5

DNS. It is a CNAME to be exact. Stupid 30 character requirement


4

I'd imagine the rewriting solution gets better SEO-foo (nice term :-P) since it's usually considered best to have one canonical domain that everybody gets sent to for a particular set of content. In other words, having two different domains that produce the same results from the server can split your site rankings between the two domains, reducing the value ...


4

Add an entry for it to /etc/hosts on the system you're ssh'ing from. The syntax is 1.1.1.1 hostname This works on Linux and Mac. For windows, the file is c:\windows\system\drivers\etc\hosts


4

One would CNAME www.etsy.com to a CDN as a form of delegation so that the Global Traffic Management service of that CDN (Akamai in this case) can determine the location of the DNS resolver querying for www.etsy.com and return the nearest edge from their CDN network. For Akamai, I think domains which go through their own network are *.edgekey.net and ...


4

A domain name is a container for other types of data, or a structure for administrative control. A hostname is a specific label for a specific computer. A fully qualified hostname is a hostname plus the domain name in which it sits. Domain names and hostnames are neither the same, nor are all of one of them the other kind. They're entirely different ...



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