Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
is there anyway to make wildcards work for subdomains on localhost (or any other thing, i just want it to point to me), what i mean is is make anything.localhost go to 127.0.0.1 but not have to put anything.localhost into any specific file, i want to just put *.localhost into a file so that anything.localhost, something.localhost, blah.localhost all point to 127.0.0.1, i have tried putting *.localhost in my /etc/hosts file but it didn't work, and the only thing i found so far is setting up bind but i feel that would be overkill
so is there any way to do this without setting up bind?
ok, well now the reason i didn't want to use BIND, i cant figure out the config files , i need help setting it up
i also tried adding "nameserver 127.0.0.1" (at the top) to my /etc/resolv.conf but that didnt seem to help
my /etc/named.conf is
Code:
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "caching-example/named.ca";
};
zone "localhost" IN {
type master;
file "caching-example/localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "caching-example/named.local";
allow-update { none; };
};
my /var/named/caching-example/localhost.zone (i thought it went at the end of this file) is
Code:
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
You can also use Webmin to manage bind. It is a simple web based management tool that can be used to do a lot of configuration on a *nix system. Its beauty is that it is exactly the same to perform any task on any flavor of *nix.
You can manage your DNS, play with a Samba config, manage a MySQL database, and much much more!
There is a Java shell environment you can get to from webmin. There is also an interesting file browser available.
One thing I liked was making changes with Webmin and then checking the config file itself to see what changes it made. This was the way I learned to manage my DNS entries. Now I do it all from the command line.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.