Review your favorite Linux distribution.
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 05-01-2009, 09:28 PM   #1
LQ Newbie
Registered: May 2005
Posts: 10

Rep: Reputation: 0
Logging into a DNS to get access to the internet HOW?

I want to setup a wireless network so that a client must first login before accessing the internet.
I want to do what a lot of hotels do. The first time the the user browses the internet it shows a login page. After the user successfully logins then they can surf the web.

Not sure how its done or even what it is called (Make googleing it hard )

If I would guess how it work... The client is setup up with a DNS server via DHCP. When the client ask for an ip address for a web site it returns back a ip address for the *login* page. When the client successfully logins then the MAC address is store and so the next DNS request the DNS server looks at the stored MAC address and sees that they have successfully login and sends back the real IP address for the web site.

That is totally a guess how it works. Tell me how it actually works...

So Questions:
What is this called?
How do I set this up? Is there a "How to"?
Where should I go for further assistance?

Thank You!!
Old 05-01-2009, 09:35 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

This question actually came up on LQ fairly recently:

What you're talking about is called a "Captive Portal".

It has nothing to do with Apache per se. It's possible because you control the DHCP lease, you control DNS, and you control the firewall.
Here's a bit more detail:

'Hope that helps .. PSM


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
Skolelinux (debian edu) DNS for external internet access ernst Debian 6 08-25-2008 06:49 AM
logging file access otoomet Linux - Software 3 12-13-2005 11:30 AM
File Access Logging dman65 Linux - General 3 04-08-2005 02:12 PM
ipchains ? Unable to access internet ... dns error ! mystique98ls Linux - Newbie 5 09-17-2004 10:06 AM
DNS Logging Problem JJX Linux - Networking 0 04-15-2004 11:22 AM

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

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