DebianThis forum is for the discussion of Debian Linux.
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.
hi , i have dns based on debain .
i just need to make a small thing .
i want if customer click
ahmad.xx.yy , i want him to be redirected to http://1.1.1.1:9654/s.html
i mean how to add manual records to thins issue .
??????????
where is the config fle to do that and how to add it ?
you can not redirect to a web page on DNS, that is totally not what it does.
where is this "Clicking" happening? I'd imagine that you want to sort this with a web server product, e.g. apache.
If there is some form genuine DNS issue that you've just explained poorly, DNS is a protocol. It is not a package. THere are many many different implementations of the DNS protocol, named, powerdns, maradns, djbdns, dnsmasq etc...
Last edited by acid_kewpie; 02-06-2013 at 09:03 AM.
you can not redirect to a web page on DNS, that is totally not what it does.
where is this "Clicking" happening? I'd imagine that you want to sort this with a web server product, e.g. apache.
If there is some form genuine DNS issue that you've just explained poorly, DNS is a protocol. It is not a package. THere are many many different implementations of the DNS protocol, named, powerdns, maradns, djbdns, dnsmasq etc...
hi , u may be miss understanding me .
i want to configure on my dns server a static thing .
when customers request the site ahmd.linuxquestions.com
i want my dns to resove the ip of the above domain to 192.168.1.23 and want to ask if it can resolve ip with port such as 192.168.1.23:6666
Given your lack of knowledge I wonder if it's a good idea for you to run a DNS service...
Anyway, you don't need DNS to solve your query. Just add the IP and domain name in the hosts file on the machine you want it to resolve. But it only works for stuff you have on that local machine or your local network. Anything on the internet: consult your ISP. Mind that you can't just "hijack" existing domain names from the net and expect it to work. If the website www.example.net resolves to a server in India, you can't claim achmed.example.net for yourself in Egypt. Or anywhere else in the world! Well, except if you work in Egypt for the company (that has to be big!) that owns the domain example.net
DNS basically isn't exactly rocket science, properly configuring it is an art in itself!
Given your lack of knowledge I wonder if it's a good idea for you to run a DNS service...
Anyway, you don't need DNS to solve your query. Just add the IP and domain name in the hosts file on the machine you want it to resolve. But it only works for stuff you have on that local machine or your local network. Anything on the internet: consult your ISP. Mind that you can't just "hijack" existing domain names from the net and expect it to work. If the website www.example.net resolves to a server in India, you can't claim achmed.example.net for yourself in Egypt. Or anywhere else in the world! Well, except if you work in Egypt for the company (that has to be big!) that owns the domain example.net
DNS basically isn't exactly rocket science, properly configuring it is an art in itself!
hi , u r right ,
i dont need to modify all my clinets pc to understand what i need .
i have alot of links in my company and changes frequently , as an example :
1.1.1.1:9655/index.html
1.1.1.1:9090:/login.php
and so on ,
yes i have dns server locally in my company but im not expert in dns , i just need to achive my requrements .
i mean i dont want my clinet a link like 1.1.1.1:9090:/login.php , but i prefre to give him ahmad.linuxquestions.com and when he put it in explorer , he must be in login.php page .
have u understood me ???
I *still* understand you just fine I think. DNS can not return port numbers, that makes no sense. You're dealing with a totally different layer there. DNS resolves IP addresses.
I *still* understand you just fine I think. DNS can not return port numbers, that makes no sense. You're dealing with a totally different layer there. DNS resolves IP addresses.
its okay if only ip address .
can you help me how to add this issue in linux debian ?? ""just name to ip ""
Debian doesn't resolve this. Debian is a distribution, not a DNS server.
Where are you now? IF you want to do this with DNS, then you appear to be asking for a 100% default DNS setup, so there's nothing we can add to the countless guides available on line and in print for setting up a DNS server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.