LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-06-2013, 08:57 AM   #1
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Rep: Reputation: Disabled
how to add records in dns ??


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 ?

regards
 
Old 02-06-2013, 09:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-06-2013, 10:25 AM   #3
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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

regards
 
Old 02-06-2013, 11:07 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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!
 
Old 02-06-2013, 11:36 PM   #5
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Dutch Master View Post
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 ???

thanks alot for
 
Old 02-07-2013, 12:23 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-07-2013, 12:40 AM   #7
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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 ""

regards
 
Old 02-07-2013, 02:12 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add MX Records hiep.pham Linux - Server 27 12-14-2012 05:39 AM
How to add ptr records in SunOS 5.10 DNS Server riyaskt Linux - Newbie 5 10-10-2012 07:11 AM
Add/edit/delete MS DNS records from Linux psychobyte Linux - Networking 3 05-24-2011 02:23 PM
DNS NS's in registrar vs DNS NS records sopiaz57 Linux - Networking 7 06-06-2009 06:20 PM
DNS Zone Records - MX Records ddzc Linux - Software 8 05-24-2007 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration