Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-28-2012, 09:15 AM   #1
Mike Davies
Registered: Jul 2004
Distribution: Custom Linux 4/Busybox. Fedora 22, Raspberry Pi
Posts: 98

Rep: Reputation: 15
Simple way needed of resolving any name to the same address

I have a system that runs hostapd, a dhcp server and apache etc. People can connect to it OK, but I want to intercept any dns lookup and resolve it to the address of this system, so the user cannot go any further, i.e. they are stuck on this system running hostapd etc.

Ideally I'd also like to intercept any explicit I/P address they put in and do the same thing.

Is there a simple way of doing this ?

What comes to mind, are some of the public wifi systems that force a user to agree to terms and conditions of use before they are allowed to go further. That is the sort of functionality that I want. How is it achieved ?
Old 02-28-2012, 09:29 AM   #2
Senior Member
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217

I think you want something like Cyber cafe hotspot
as these "hotspots" provide internet access if you login through their system with some kind of token (or whatever)

the thing is I don't know how to set it,
here some kind of hostapd configuration is explained.

Basically your server must "stand" between internet connection (Radius) and clients, to provide them your site first and then if auth. successful they can proceed surfing.
Old 02-29-2012, 12:31 PM   #3
Mike Davies
Registered: Jul 2004
Distribution: Custom Linux 4/Busybox. Fedora 22, Raspberry Pi
Posts: 98

Original Poster
Rep: Reputation: 15
Thanks. It's not exactly what I am after but I think there are enough clues in there to lead me in the right direction.

Thanks again


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Resolving Host name to IP address. gardenair Fedora 1 01-25-2011 01:38 AM
sarg and resolving an IP address to a Hostname Wynand1 Linux - Networking 3 05-10-2006 05:00 AM
How to make an interface use a certain dns address for it's name resolving? Infernal211283 MEPIS 1 12-11-2005 02:44 AM
DHCP server not resolving address netguy2000 Linux - Networking 6 10-07-2004 04:19 AM
problem with resolving MAC address from windows system7 Linux - Networking 3 02-15-2004 05:25 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:02 PM.

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