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 ...


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

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. ...


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

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


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

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 ...


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 ...


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

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

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

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


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

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

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

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

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

[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

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.


4

Probably neither are liable due to the TOS you agreed to. Next time pay for a decent provider. Remember.. you get what you pay for.


4

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 ...


4

Your best bet is to setup a secondary MX record and server to catch all of those e-mails during the migration. There are lots of companies that offer Backup or Secondary MX record hosting services, some free, some not. Either way, the entire purpose is to sit there and get mail and then deliver it on to the primary MX box when its available. It's ideal ...


4

Two methods: Ping -a ip address nslookup ip address (This will only work if you have an rDNS zone setup).


4

edit /etc/sysconfig/network and change the HOSTNAME setting to say data001 instead of data001.dd. Edit /etc/hosts and make sure you have a line 127.0.1.1 data001.dd data001. If you already have such a line, make sure that data001.dd is the first thing after the ip address. Doing this with 127.0.0.1 instead of 127.0.1.1 is also common, valid, and ...


4

Log in at a terminal as root and stop the mysql daemon. /etc/init.d/mysqld stop Then start up the mysql daemon and skip the grant tables which stores the passwords and other priviledge information mysqld_safe --skip-grant-tables & You should see mysqld start up successfully. Now you should be able to connect to mysql without a password. mysql ...



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