buzzy456 Posted January 2, 2016 Posted January 2, 2016 need help to setup a dns server, so i can redirect anyone using my server to whatever ip i want Quote
Rkiver Posted January 2, 2016 Posted January 2, 2016 Easy really. You setup your own IP Tables on a server you own, point the local router that all traffic goes through to it as the local DNS server, and away you go. Quote
buzzy456 Posted January 2, 2016 Author Posted January 2, 2016 do you have a link to a tutorial? Quote
cooper Posted January 3, 2016 Posted January 3, 2016 You need 2 things: - Get any connecting client to use your DNS server. You can provide its location in the dhcp config. - Set up this DNS server. Read up on any Bind tutorial. Holler when you get lost. Quote
buzzy456 Posted January 5, 2016 Author Posted January 5, 2016 cheers cooper, im only 14 so i appreciate anyone that helps me out, should i just use one of the ubuntu bind server tutorials, Quote
buzzy456 Posted January 5, 2016 Author Posted January 5, 2016 'You can provide its location in the dhcp config' do you mean i can provide a location of an url to an ip in the dhcp config or? Quote
cooper Posted January 5, 2016 Posted January 5, 2016 What you should do is read up on the dhcpd program, which is your DHCP server (or daemon, in UNIX speak, hence the d at the end). When a client connects to the network it asks the DHCP server for its IP address, but in this process it also gets information about things like routing as well as DNS. Your DHCP server might provide the DNS server it uses itself for this, but far more common is that you specify the IP of the DNS server(s) in the config file for this daemon. Where this file is on your system (probably somewhere under /etc) and which setting(s) you'll need to change to achieve this is something you'll have to figure out yourself but a combination of reading the man page on dhcpd and nice helping of Google should be all you need. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.