Ubuntu :: Is The /etc/hosts File Related To Subdomains

Feb 16, 2010

I am trying to add subdomains on ubuntu 9.10 desktop edition and and I am not sure whether I need to add some info.(such as 127.0.0.1 sub1.example.com and so on) to the /etc/hosts file like the windows' windows/system32/drivers/etc/hosts file. I used to use the wamp-server(on Windows 7), I needed to edit 3 files, httpd.conf, httpd-vhosts.conf and hosts. And almost every edit is made in the httpd-vhosts.conf file on wamp-serveriles should be edited? or what else should be done that I didn't mention?

View 1 Replies


ADVERTISEMENT

Security :: Use Current /etc/hosts File To Do An Ssh-keyscan Instead Of Making A Special List Of Hosts?

May 2, 2011

I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?

View 2 Replies View Related

Ubuntu :: No Hosts File - Just Hosts.allow And .deny?

Jan 26, 2011

Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?

View 1 Replies View Related

Ubuntu Networking :: Proxy Settings: Allowed Hosts Instead Of Ignored Hosts

Aug 17, 2011

Well, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?

PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.

View 9 Replies View Related

Ubuntu :: Add An Entry To The Hosts File?

Jul 5, 2010

I share a computer with my brother. It runs Lucid Lynx. I want to add an entry to the hosts file that will affect him negatively. Is there a way I can add the entry, without it affecting him, like, is there a user-specific hosts file?

View 9 Replies View Related

Ubuntu :: How To Password Protect The HOSTS File

Jul 13, 2010

tell me a way to password protect the HOSTS file in ubuntu so that when i block certain websites the other person cannot unblock them.
IMP: i donot want the HOSTS file to be protected by 'root' password as the other person knows it.

View 9 Replies View Related

Ubuntu :: File Hosts Change After Reboot In 10

Apr 25, 2011

I want to know why when i change the file hosts, fill it with due parameters and reboot the system, the latter unexpectedly change ?

View 2 Replies View Related

Ubuntu :: Hosts File Keeps Reverting / Stop It To Do So?

Aug 3, 2011

I'm configuring Apache to work from several development directories as per these instructions: http://tuxtweaks.com/2009/07/how-to-...-apache-linux/

Got it all to work ok, for a while but then when I reboot the entries I've made in the hosts file dissapear and I can no longer use them.

I'm assuming DHCP reverts the hosts file or something?

What's the 'proper' way to get an entry into a hosts file and have it stay there?

View 3 Replies View Related

General :: Ubuntu - How To Lock The /etc/hosts File With A Passcode

Dec 18, 2010

I would like to lock the /etc/hosts file somehow in a way that only someone else can unlock it, possibly using a lock code.I would then give the passcode to someone else.I'm running Ubuntu 10.10.

View 2 Replies View Related

Ubuntu Networking :: Way To Have / Etc / Hosts File Re-read Sooner?

Feb 28, 2011

I often manually add a troublesome domain (e.g., advertisements, fake virus alerts, etc.) to my /etc/hosts file on Ubuntu 10.04 Lucid; but the effect isn't immediate.My hosts file is already fifteen thousand lines long (having combined all the hosts files I could find on the net, including the MVP one); but I still, almost daily, find a new irritant to add to my /etc/hosts file.My problem is I do not understand WHEN the /etc/hosts file is next read after a change.I've been rebooting to make sure the hosts is re-read; but there must be a simpler way.My question:

- WHEN is the /etc/hosts file reconsidered in Ubuntu?
- Is there a way to have the /etc/hosts file re-read sooner?

View 9 Replies View Related

Ubuntu Networking :: Change Hosts File By Network Connection?

May 11, 2010

Is it possible to have different /etc/hosts file for different network connections without having to go in and change it every time? The why: I have dyndns and port forwarding to get to my desktop. My laptop is sometimes on the same network, and sometimes not. Also, sometimes the dyndns doesn't update properly, or the outside connection is down, but I want to get to my desktop (and I'm too lazy to walk up the stairs). I'd like to be able to keep one set of bookmarks, ssh command aliases, etc. that would always get to it the fastest and most reliable way possible.

View 1 Replies View Related

Networking :: Add Host Name For The NIC Card Into /etc/hosts File

Jan 31, 2010

Instructions say "Add hostname for the NIC card into /etc/hosts file" do I touch or mkdir it in?

View 11 Replies View Related

Server :: Postfix DNS: Why Does It Not Check Hosts File

Mar 22, 2011

I run a few virtual servers at home behind a NAT, including an e-mail server, with dynamically updated dns records pointing to each of the servers. Consequently, I suffer from the loopback problem when working with these servers from my desktop PC. (E.g., I ping one of the dns hostnames and the ping goes to my router instead of the server). I fixed this problem by manually adding the in-home IP addresses and name pairs to my /etc/hosts, and then setting /etc/host.conf to a "hosts, bind" order.

This seems to work for every application on my desktop except for one: the postfix installation on my desktop PC (used for mailing smartctl messages and so forth) cannot communicate with my in-home e-mail server (times out). I checked the logs, and it looks like it is trying to use the IP address from the actual A-RECORD, rather than the address in my hosts file.

So I'm not quite sure what to do. There seems to be a "proxy_interfaces" parameter in main.conf which might be relevant, but I think it only deals with received mail. I'd prefer to have the mail going to that e-mail server, rather than also having to check the spool on my local desktop accounts.

View 1 Replies View Related

Ubuntu Servers :: Unable To Configure Virtual Hosts File Properly

Jun 28, 2011

I'm having problems configuring my virtual hosts file properly The site [URL]... opens on http and https The site 10.0.1.3/myapp/ works
I am trying to redirect all traffic from [URL].... to [URL].... while maintaining access to [URL]....

[Code]....

View 2 Replies View Related

OpenSUSE Network :: Migrate Windows' Hosts File?

May 24, 2011

I have some settings within hosts file of my Windows Vista. It helps me to bypass some limitation and get online better. I would like to migrate some settings to openSUSE 11.4.Is there anyone who knows how can I tune my openSUSE?FYI, setting of hosts file is lines of <IP Address> <Spaces OR Tabs> <URL OR Alias>

View 4 Replies View Related

General :: Dnsmasq Without Altering /etc/hosts File Manually?

Jul 19, 2011

I've trying to get dnsmasq working as a combined dns and dhcp server. It's infuriating so far... In short, the DNS works fine for anything added to /etc/hosts, and the dhcp works fine, but the dhcp is not updating the dns with hostname information from clients.

The outcome of this is that i can only ping a node by hostname if i know it's address, which means setting a static dhcp allocation and putting the hostname into /etc/hosts manually, which is very annoying and kind of defeats the poit of dhcp. There must be a way to get dnsmasq to update the hosts file, surely The clients aren't using fqdn's if that matters, and i think i've tried every combinination of "expand-hosts" and "domain=" following is the dnsmasq config file contents:

domain-needed
bogus-priv
except-interface=tun0

[code]....

View 2 Replies View Related

OpenSUSE Network :: YaST Creates Only 1 File For Many Virtual Hosts?

Jun 8, 2010

When I converted to OpenSUSE 11.2, and went through YaST HTTP Server Configuration, creating my virtual hosts under the Hosts tab, YaST combinedm all int ile,"/etc/apache2/vhosts.d/ip-based_vhosts.conf".I did google and read, [URL]for further assistance.I'd like each virtual host to have its own file under vhosts.d, and wondering why YaST did not do that.The file /etc/apache2/httpd.conf laid out the file structure, and all vhosts.d/*.conf files are included.Is there a way to tell YaST to create separate files for each vhost, or does the user have to manually do it?

View 5 Replies View Related

General :: Reboot Not Required After Changing HOSTS File Content?

Oct 18, 2010

I was having a discussion with someone who asked me whether a Linux OS has to be rebooted when the hosts file is modified. From personal experience, on Windows I change the file but don't reboot and I've seen others do the same thing. I assume Linux has no exception(s), but is there any reason why a reboot is not required (to at least justify my actions)?

View 2 Replies View Related

Networking :: Map Url Adress To Localhost (edit Hosts File In Windows)

Feb 3, 2010

I run a local apache server, that has some virtual hosts running. Now I want to be able to locally connect to these virtual hosts, but when I try this, it puts www and .com behind the url and says it can't find it. On Windows I know the equivalent, editing the hosts file. Is there something similar in linux?

View 1 Replies View Related

CentOS 5 Networking :: Network Script - Changing Hosts File?

Aug 4, 2009

I need a script but i am not good at programming soWhat script have to do:- Every 1 minute is checking if ip address is available (ping)- if ip answers nothing happens- if ip does not answers: * file /etc/hosts is changed by one stored in /home/user/hosts* notification by xterm to restart some programIf finally ip answers file /etc/hosts is changed by one stored in /home/user2/hosts

View 6 Replies View Related

Ubuntu Servers :: Apache2: SNI & Virtual Hosts - Multiple Virtual Hosts With Ssl And Only 1 Ip Address

Jan 17, 2011

[Code]....

What I want: multiple virtual hosts with ssl and only 1 ip address: In my example: server = 192.168.227.129

[Code]....

View 9 Replies View Related

Debian Configuration :: Editing / Etc / Hosts File To Make Website Loopback

Sep 6, 2010

I am trying something a bit tricky.Suppose there is a website URL...Now suppose when i open a file /var/www/ test.php which connects to the above website to gather some info and then allow me to further in the process, i want it to instead direct to a file say /var/www/test_done.php.How do i edit my hosts file for such a scenario? Is there any other better option than using a hosts file ?

View 1 Replies View Related

General :: Scp With Range Of Files To Be Copied To - From - Or Between Different Hosts - Error - No Such File Or Directory

Jun 27, 2011

Working fine: ==> scp my_log-bin.01393[0-9] root@192.168.103.66:/backup/ error - No such file or directory: ==> scp my_log-bin.0139[30-99] root@192.168.103.66:/backup/

View 4 Replies View Related

Server :: Append A Set (or Sets) Of Data To A File(or Files) On Remote Hosts?

Dec 26, 2009

If I need to append a set (or sets) of data to a file(or files) on remote hosts what is the best mechanism by which to do that? My first thought was ssh but the command syntax to append to a remote file isn't clear to me. Can anyone point me in the right direction here?

View 4 Replies View Related

Ubuntu :: Dig - Find Out All Subdomains Of A Domain?

Feb 21, 2010

i was looking for a way to find out all subdomains of a domain and i have found dig.But it doesn't seam to work how i sow in those tutorials.this is what i get:

PHP Code:[code]....

Is there other way that i can find out all subdomains of a domain?

View 1 Replies View Related

Ubuntu :: External Machines Can See Some Subdomains But Not All

Sep 16, 2010

I have a DNS server on my LAN at 192.168.140.25. Going by the example in the O'Reilly DNS and BIND book I bought, I set up the domain movie.edu and toystory.movie.edu. To my great surprise and delight, I can access toystory.movie.edu in a browser from another PC on the LAN (as long as I add 192.168.140.25 to the DNS servers). Encouraged by this victory, I decided to try to set up another subdomain at coupon.movie.edu. This kind of worked but not completely. Interestingly, I can get to both toystory.movie.edu and coupon.movie.edu on my server, but on my PC, I can only get to toystory.movie.edu, not coupon.movie.edu.

Here is my db.movie.edu:
Code:
$TTL 3h
movie.edu. IN SOA toystory.movie.edu. al.movie.edu. (
1 ; Serial
3h ; Refresh after 3 hours
1h ; Retry after 1 hour
1w ; Expire after 1 week
1h ) ; Negative caching TTL of 1 hour

movie.edu. IN NS toystory.movie.edu.
movie.edu. IN NS coupon.movie.edu.
;
; Host addresses
;
localhost.movie.edu. IN A 127.0.0.1
toystory.movie.edu. IN A 192.168.140.25
coupon.movie.edu. IN A 192.168.140.25

And here is my named.conf:
Code:
options {
directory "/etc/bind";
};

zone "movie.edu" in {
type master;
file "db.movie.edu";
};

zone "140.168.192.in-addr.arpa" in {
type master;
file "db.192.168.140";
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "db.127.0.0";
};

zone "." in {
type hint;
file "db.cache";
};

#include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
#include "/etc/bind/named.conf.default-zones";

View 2 Replies View Related

Ubuntu :: Subdomains Point To Localhost?

Mar 31, 2011

I'm doing development on a site, let's call it mysite.com. mysite.com and www.mysite.com works fine, but proxy.mysite.com and dev.mysite.com point to the LAMP stack running on my computer. Pinging mysite.com gives me:

Code:
64 bytes from server.myhost.com (64.64.0.102): icmp_req=1 ttl=47 time=47.4 ms
Whereas dev.mysite.com gives me:
Code:
64 bytes from localhost.localdomain (127.0.0.1): icmp_req=1 ttl=64 time=0.031 ms
Subdomains of any other site work fine. I am absolutely baffled. What in the world could be causing this? I haven't been messing around in /etc/hosts or anything like that.

View 3 Replies View Related

Server :: Setup Subdomains On Ubuntu?

Jan 20, 2010

I have set up a dedicated server running Ubuntu Server Edition. I have apache2 installed and running great. I wish to let friends and family host their individiual websites on it, but I'm running into a bit of a dillema. It seems that my server automatically redirects them to my home page and not theirs.

[code].....

View 4 Replies View Related

Ubuntu :: DNS SRV Records - Subdomains Work On IP Address?

Apr 11, 2011

I am quite interested in one thing. I am trying to code my dns server that when I connect to one of my subdomains it connects not only to an ip address but to an ip : port address. For this I tried using SRV record, but with lack of success.

Dns server specification:
OS Ubuntu server 10.10 and using bind9
I have configured everything so that my subdomains work on an ip address, but I need some of them to work on ip : port too. In my brfconcept.lv.db file i used: (what I mentioned below isn't the full content of the file)

Code:
_http._udp IN SRV 0 5 27017 testing.brfconcept.lv
testing IN A 83.99.211.134
in my rev.0.168.192.in-addr.arpa i used: (what I mentioned below isn't the full content of the file)
Code:
134 IN PTR testing.brfconcept.lv

What I would want is not just for 1 service to aim at at the 27017 port but all services if its possible, when you enter testing.brfconcept.lv Is that possible and what am I doing wrong?

View 8 Replies View Related

Networking :: Subdomains Behind Single IP?

May 4, 2009

Here is my network setup:

Internet <-> [public IP] Router [192.168.x.x] <-> Local
Local <-> DMZ
Local <-> HostB
Local <-> HostC

I have a system set up as a DMZ which works great for accessing SSH and other various services. I have a dyndns account that points to my public IP and allows me to access my DMZ box from around the world. I would like to make a subdomain of my current dyndns account and point it to HostB so that it can host a webserver on it, and have another subdomain point to HostC with a separate webserver on it. each would have SSH, FTP, Etc and have to not conflict with one another behind one IP. I don't even know if it is possible, but it seems like if there is a request for dev.host.homelinux.com that packet would have to hit [URL]and could be iptable'd to be routed to the appropriate local machine somehow.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved