[00:24] anyone have experience with setting up name servers? [00:25] !search sensors [00:25] Found: sensors, lm-sensors, lmsensors [00:52] ... so if im setting up a server and dns ... how exactly does the domain mydomain.com know that the name servers are hosted as ns1.mydomain.com [00:52] because i don't think it will take ns1.mydomain.com as a dns server [00:53] It works fine. As an example do dig computeroptions.net ns and notice that both nameservers are with the domain concerned. [00:54] i followed this - http://beer.org.uk/bsacdns/ [00:54] and when i try to change the name servers on my domain it says that the one i created is invalid [00:54] or am trying to use [00:55] You need to tell your domain registrar what machines are nameservers for your domain. if it says they are invalid, then most likely your newly created nameserver is not working right, and when the registrar check it they discover that and so won't let you set your DNS servers to a non-working server. [00:55] oh okay... [00:56] i did everything in that tutorial except to see if its working which i don't know how he did that [00:56] Do you need to troubleshoot your new server and make sure it works and believes itself to be authoritative for the domain concerned. [00:56] Ever heard of the dig command? :) [00:56] never [00:56] man dig [00:57] um [00:58] well maybe you can tell me if what im doing is completely wrong or not... I want to host a couple domains off my ubuntu server [00:58] so im creating a dns server [00:59] Sounds fine as long as you know enough to run a DNS server :) [00:59] I want to learn but it seems like i can't grasp exactly how it works [01:00] DNS is just a global tree of databases so you can look up names and get numbers (IP addresses) back, and look up Ip addresses and get names back. [01:01] right... So if i have a domain lets say apples.com and i want that one to be the one that has the name servers associated with it like ns1.apples.com ... i added a master zone and then the name servers [01:01] and than what do i do domain side [01:01] artillerytx: who will be using this dns server to look up your domains? [01:01] pmatulis: what registrar ? [01:02] i just thought anytime you want to host a domain on a certain server you have to enter in the name servers and tell the hosting service this domain should look in this virtual folder [01:02] artillerytx: Does that newly created nameserver *work* ? Can you query it (with dig) and get the answers you expect? [01:03] Until it works, telling your registrar to use it as a master DNS server is not a good idea... [01:03] jmarsden: when i do digg @apples.com it says no server could be reached [01:04] artillerytx: Use the Ip address sicne it is not yet registered :) dig @12.34.56.78 apples.com [01:04] k [01:05] im behind a router i should probly open the ports [01:05] artillerytx: apples.com is the domain, not the address of the server, I imagine [01:05] there's no need to forward ports if you're testing internally [01:05] okay [01:06] What does dig @12.34.56.78 apples.com do when 12.34.56.78 is the local IP on your LAN of the DNS server machine? [01:06] i tried dig @xx.xx.xx.78 longhornpcrepair.com and it says connection timed out [01:07] oh lol [01:07] Where xx.xx.xx.78 is a local IP address? [01:07] okay i'm seeing the name servers [01:07] You are testing internally... [01:07] artillerytx: then either your DNS daemon isn't running, or there's a firewall in the way [01:08] So, now use dig to check all the info you expect (MX records, A records, etc). When you know they are all there, you'll need to straighten out your router/firewall so the rest of the world can see this DNs server. [01:08] alright im seeing the name servers i created earlier [01:08] where are you seeing them? [01:08] on the local ip [01:08] you said dig failed and said connection timed out [01:08] i was using the public ip [01:09] its been a long day [01:09] now i can open the ports [01:09] ok, well if you have an A record for that domain ... then the answer should've been printed [01:10] oh where is says SERVER:192.168.1.2#82(192.168.1.2) [01:10] woops [01:11] the #number is the port i open [01:11] no [01:12] DNS is run over port 53 [01:12] forgive me if i sound super idiotic this is just very new and strange [01:13] Okay so what do i need to do so that my registrar will let me use ns1.apples.com [01:13] well you're in the middle of a topic you haven't really learned yet, so it's normal for it to be new and strange [01:13] artillerytx: Straighten out your firewall so the world can see your DNS server on TCP and UDP port 53. [01:13] artillerytx: you need to register your nameservers with your registrar, each registrar has different ways of doing this [01:13] Then ask your registrar to use your server as the master DNS server for your domain. [01:14] Until your newly created DNS server exists (and works) on the Internet, your registrar is unlikely to let you use it, because for everyone except you, it does not yet really exist :) [01:15] I don't know of registrars that prevent you from using inactive DNS servers [01:15] but he'll need to register his nameservers first if he wants them to be referenced as nsX.apples.com [01:16] okay well i opened the port 53 [01:17] artillerytx: Do you have a way to test frm the outside? ssh to a remote machine and dig from there to @yy.yy.yy.yy apples.com where that is your public Internet Ip of the DNS server? [01:17] how do i check and see if the world can see it [01:17] jmarsden: no i don't [01:18] Or tell me what the IP and apples.com are and I can test it from here... :) [01:18] can i PM you ? [01:18] Sure. [01:18] artillerytx: this isn't a secret, you've already pasted your domain name into the channel [01:18] and your nameserver's IP can't be private [01:18] thats true [01:19] well my domain isn't apples.com [01:19] I'm aware [01:19] you pasted it earlier [01:19] Oh okay [01:19] haha sorry i trust you guys [01:19] well trust us or not, the channel is logged on the internet [01:20] k [01:20] so it would be @75.43.20.78 dns1.longhornpcrepair.com [01:20] i guess [01:20] no ... [01:21] we're not looking for an A record for dns1. [01:21] but yes, your DNS server is reachable from the internet [01:22] so you can continue setting things up [01:22] hooray [01:22] argg still not taking it [01:23] is there something special i need to do to get them to take it [02:32] artillerytx: I told you that you need to *register* your name servers first [02:32] how do you do that [04:55] kirkland: ping [05:02] Goodnight everyone [07:36] New bug: #404768 in bacula (universe) "package bacula-director-mysql 2.4.4-1ubuntu5 failed to install/upgrade: subprocess post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/404768 [09:11] how do I get pure-ftpd to recognize a symlink? === NCommand` is now known as NCommander [13:11] Has anyone enabled SELinux on a ubuntu server? [13:19] hi [13:20] I can't setup apache2 mod_rewrite properly under ubuntu(it works well under windows, but not ubuntu). [13:21] anyone there? [13:32] andy1234124: works for me (tm) [13:32] have you enabled it? [13:38] yes. [13:38] Royk: yes [13:39] it works for some pattern [13:39] erm [13:39] ok? [13:40] it's still only apache - the code is the same [13:40] under windows, all the patterns are ok. but under ubuntu, some are ok, some don't work. [13:40] what versions of apache? [13:41] apache2.2 [13:42] there are apache2.conf, http.conf, sites-enabled/000-default, i am not sure which file should I add the rules? [14:06] andy1234124: this is probably much more relevant for #apache (they probably know more definitively) [14:07] giovani: thanks [14:08] RoyK: thanks [14:09] my initial guess is either your rules are for a different version syntax, or they weren't written to spec initially, and now they're broken in the newer version, or there are some minor differences between the *nix/windows versions [14:12] ah, interesting. I moved the rules into that specific directory, then it works [14:12] you said some were working, some weren't [14:12] that doesn't really make sense if they were in the wrong directory [14:13] no. i put those things globally inside apache2.conf [14:14] sorry for the confusion. now i moved them to sites-enabled/000-default, then everything is ok [14:17] but still don't understand why can't put things at the end of apache2.conf. [14:17] nobody said you can't -- it's just messy, and definitely not scalable [14:20] you'll appreciate one-config-per-site when you have a few hundred/thousand of them, trust me :) [14:21] :) thanks a lot. i don't know much about apache, i'll definitely read the apache manual ag. === giovani|work is now known as cubision|somewhe === cubision|somewhe is now known as giovani|notwork [16:46] New bug: #404905 in mysql-dfsg-5.0 (main) "package mysql-server-5.0 5.1.30really5.0.75-0ubuntu10.2 [modified: /var/lib/dpkg/info/mysql-server-5.0.list] failed to install/upgrade: subproces pre-installation script gaf een foutwaarde 1 terug" [Undecided,New] https://launchpad.net/bugs/404905 [19:09] is there no apache module for ebox [19:49] hi, is there a log that shows ssh user actions? [20:11] fightskillz: you mean shell commands? That's up to the shell to record [20:13] my server got hacked this morning, I wanted to see what they did after they ssh-ed in.. assuming they didn't delete their tracks [20:14] fightskillz: do you know which user they logged in as? [20:17] not yet, i'm gonna boot up and grab the logs and then decide what to do.. just want to make sure i get them all [20:17] well there's no need to "get" them all -- whatever's there is there [20:18] presuming the users use the bash shell, they'll have a file in their home directory named .bash_history [20:18] woo i registered my name servers [20:18] how do i remove ebox ? [20:18] artillerytx: sudo apt-get remove ebox [20:19] i didn't know ebox wasn't really for web servers [20:19] i'm concerned that they'll ssh in again and delete the log files. but thanks i'll download the home directories too [20:20] fightskillz: if the system has been compromised, you shouldn't be placing it back on the network at all, so that shouldn't be a concern === artillerytx__ is now known as chrislabeard [20:22] catch 22? [20:22] that's not a catch-22 [20:23] that's incident response 101 [20:23] unless you're *trying* to get the attacker to log back in [20:23] ya but how do i look at the log files without putting it on the network [20:24] you connect via keyboard, serial console, IPMI, KVMoIP, whatever [20:24] is there an alternative to webmin thats not ebox [20:25] chrislabeard: there are others ... none are supported here [20:25] giovani|notwork: the only one that is supported is ebox ? [20:25] ipmi [20:26] chrislabeard: yes [20:26] sorry, ignore that [20:26] giovani|notwork: why ebox sucks [20:26] giovani|notwork: wait it doesn't suck just takes more time to set up [20:26] chrislabeard: because ebox is the only one that works with debian/ubuntu properly [20:26] excuse me [20:26] if it were up to me, none of them (including ebox) would be supported [20:26] but clearly there's too much demand to say no [20:27] yeah [20:27] cause people like me will just use the web panel instead of actually know whats going on [20:27] which leads to many problems down the road [20:28] yeah [20:28] yeah, so I advise against using any kind of "web panel" [20:28] for sever administration [20:28] alright what about like phpmyadmin ? [20:29] that shouldn't be that bad [20:29] just mysql [20:29] it's bloat, it opens up a host of security risks, and it keeps you from learning how to actually use mysql [20:30] but you're clearly free to use it === giovani|notwork is now known as giovani [20:42] man i'm getting a syntax error when i try to start apache [20:44] chrislabeard: presumably you mean a syntax error in your config files -- you should check them with "apachectl configtest" [20:45] mmk [20:45] (this is in the apache manual, and all over google) [21:06] lol, so instead of taking your advice, I booted my server and downloaded the log files before shutting it down again.. within 10 seconds iftop was showing a bunch of ssh connections from other ips. i'm still looking through the logs but looks like they never actually got in. one set of hackers were brute forcing usernames and the other brute forcing passwords, what's funny is it's been going on for days and i only noticed it or t [21:06] hought to look after seeing suspicious apache log. i've gotta get on top of this [21:07] yeah ... [21:08] this is why IDSes are useful [21:08] you would've seen it instantly [21:10] agreed i've been a fool. a FOOL! [21:17] or even just log monitoring [21:22] you guys know of any way to be able to see my webserver inside my network .. it works fine outside my network but i can't go to the live url and see it [21:22] chrislabeard: you can use its internal ip [21:23] giovani: true [21:23] or have your internal dns resolve the external domain to your internal ip [21:43] is this working http://75.43.20.78:80/ for you guys [21:44] It works! [21:44] hooray [21:44] what about http://longhornpcrepair.com [21:44] chrislabeard: yep, it works [21:44] great [21:45] ditto [21:45] no i need to figure out how exactly virtual hosts work [21:45] apache has great docs on the subject [21:45] yeah im reading it right now [21:46] so whenever i want to host another domain i create another virtual server add a new record to my dns server and that should be good [21:46] im still reading thats just what im assuming right now [21:49] so each domain has its own virtual server [21:50] dns will direct requests to your ip address, vhosts will direct those incoming requests based on port and requested domain/subdomain to a folder [21:52] chrislabeard: no, there's no "virtual server" [21:52] just a virtual name host [21:52] giovani: yeah sorry [21:53] presuming you want all of your sites to be on the same IP [21:53] if not, then you use ip-based virtual hosts [21:54] alright.. so i have a new domain i assign my dns servers to it... they will look on my server to see if i have created a host for this domain [21:58] ok [22:00] alright i think i understand how it works now [22:09] hello [22:10] I have this entry in my crontab [22:10] 30 * * * * /home/acs/update.php [22:10] shouldn't this run every 30minutes? [22:10] every time the script is ran it writes to a log file and I have log dates an hour apart instead of 30m [22:11] anyone? [22:13] is there something wrong with how I set up the time?? [22:14] Acs: no, that's incorrect [22:14] the first field should be "*/30" to get the job to run every 30 minutes [22:16] putting 30 in there means that it will run every hour at the 30 minute mark [22:16] oooohh of course [22:16] giovani thanks [22:17] if you know specific minute-marks you want it to run at, you can specify them [22:17] giovani I really just want this to run every 30 m [22:17] ok [22:17] then */30 will be what you want [22:17] so it will be like [22:17] */30 * * * * /home/acs/update.php [22:17] thanks giovani [22:18] Acs: yep [22:37] anyone ever setup proftpd?