IT News, Tutorials, Solutions – SYSTEM HALT

25Jan/120

Host your website home and dynamic update dns zone on zoneedit.com

This week I tried to find a solution for hosting my website (www.syshalt.net) home on a small server. I had all resources but no fixed IP in order to host DNS Server in my location. I have an ultra-fast connection but I`m connecting using PPPoE and after each disconnect and reconnect my IP changes.

After some time researching on internet I found that there are free solutions to this approach, and you can host your website on your home server.

First this you need to do is to go on www.zoneedit.com and register an account. Zone Edit hosts for FREE a Dynamic DNS Zone. What that means? Well they host for you DNS zone and you can update dynamic the DNS when your ip changes. After you register on zoneedit, create a zone name with your domain name and set the TTL to 300. Now you will need to go to your domain registrant account and change the DNS servers to the ones provided to you from zoneedit.com (when you log on member area, on the left side under "Host Status")

The final step is to install a client that updates on zoneedit.com your WAN ip every time it changes.

Installation on Windows:

After searching a windows client that can be installed as a windows server, and what I found did not worked as expected, I decided to create my own client that has no GUI, it runs only as a windows service and updates the zone automatically on zoneedit.com

zeDynDNS Version 1.2 - Download

Changes

- Fixed some issues on event messages handling.

The setup will install the client in C:\Program files\zeDynDNS and register automatically as windows service. After install go to installed folder and open zeDynDNS.ini in order to configure username, password (for zoneedit), domain zone (to be updated), update interval (default 5 minutes). Reboot your server or restart the service (Start -> run -> services.msc and find Zone Edit DynDNS) in order to apply the new settings.

Installation on Linux/UNIX (info from zoneedit.com)

Recommanded client by me: http://encodable.com/eponym/ (I used this on a linux server and works very good)

You can also use these commands:

lynx -source -auth=username:password 'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com'

or

wget -O - --http-user=username --http-passwd=password 'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com'

PPP users should place one of the above commands (or a perl client) in the file /etc/ppp/ip-up or /etc/ppp/ppp.linkup, which are called whenever a ppp connection is made.

Users of dhcpcd may place these commands in the file /etc/dhcpc/dhcpcd-eth0.exe or /etc/dhcpc/dhcpcd-eth1.exe which are executed whenever a new dynamic IP address is acquired.

More info you can find here: http://www.zoneedit.com/doc/dynamic.html

 

10Feb/111

Disable iOS 4 services. Optimize your iPhone, iPod, iPad and save memory.

I know iOS is a super fast and optimized operating system but still there are some services that start but are unuseful for us and consume memory that can be used in other ways.

So in order to disable this services you must have a jailbroken iDevice with OpenSSH installed (you can install from Cydia).

How connect to your device (after you connected to an wireless network) using Putty or any other ssh client (Mac users can connect from terminal). The default password for OpenSSH after fresh install is: alpine

Now copy line, one by one in order to disable the services.

launchctl unload /System/Library/LaunchDaemons/com.apple.CrashHousekeeping.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.DumpPanic.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.ReportCrash.DirectoryService.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.ReportCrash.Jetsam.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.ReportCrash.SafetyNet.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.ReportCrash.SimulateCrash.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.ReportCrash.StackShot.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.ReportCrash.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.apsd.tcpdump.en0.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.apsd.tcpdump.pdp_ip0.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.chud.chum.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.chud.pilotfish.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.marco.tcpdump.en0.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.tcpdump.server.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.datamigrator.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.marcoagent.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.powerlog.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.mobile.profile_janitor.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.AOSNotification.plist
launchctl unload /System/Library/LaunchDaemons/com.apple.AdminLite.plist

Reboot your iDevice. Now the startup speed should be improved. Also memory usage on fresh reboot is lower.

Tried these optimizations on iPhone 3GS and iPad 3G.

21Oct/100

Top 10 iPhone applications and customizations

I want to present some of my top 10 applications and customizations I use on my iPhone.
For the start you should have an jailbreaked iPhone, I`ll not cover how to do that here. Now open Cydia application (this comes with jailbreak) and add at sources these repos:

http://www.sinfuliphonerepo.com/
http://www.cmdshft.ipwn.me/apt/
http://cydia.hackulo.us
http://cydia.myrepospace.com/hackstor/
http://cydia.xsellize.com
http://rpetri.ch/repo
http://apt.dmytro.me
http://cydia.myrepospace.com/ukakotar/

After fresh install of iOS on iPhone, I usually install this aplications witch I consider mandatory in day by day usage:

1. AppsSync

Let`s you install applications that are not from AppStore and syncronize them with iTunes

2. Push Doctor

Installs certificates for Push Notifications and Youtube

3. Youtube2

Let`s you download videos from Youtube

4. zToggle

Disables Wallpaper & Multitasking on iOS 4

5. Respring

Restarts the springboard

6. SwitcherMod

Adds functionality on multitasking bar

7. Remove Recents

Auto removes recents applications from multitasking bar (not the ones active)

8. Attachment Saver

Let`s you save attachments from e-mail to iPhone

9. Recent/CallLog Delete 1.4

One of the best applications that iOS 4 lacks by default, let`s you delete one by one recent calls log.

10. USB Drive

This aplication is awsome, let`s you reserve space from your flash memory and acts like a USB Drive using the USB cable.

On iOS 4 (3gs) I usually disable the wallpaper because it seems that the springboard is running more smooth without wallpaper. Also I remove these services (using SSH):

cd /System/Library/LaunchDaemons
and then remove files using: rm –rf file

com.apple.DumpPanic.plist
com.apple.ReportCrash.(Different Things).plist
com.apple.CrashHouseKeeping.plist
com.apple.stackshot.server.plist
com.apple.tcpdump.server.plist
com.apple.chud.chum.plist
com.apple.chud.pilotfish.plist

24Mar/090

DNS – servfail response (SOA records)

Today, I have had some issues with one of my DNS servers.
The configuration is: one master and one slave for the zone. Yesterday night the master failed due to hard-disk failure. Today when I was reinstalled / upgraded the master, the slave start to respond “servfail” to all the queries for that zone. The thing was very strange because the slave still was the nameserver for that zone. Fortunately I managed to fix. The problem was in the SOA record.
As you know from an earlier post the zone looks something like this:
$TTL 3600
@ IN SOA example.com. root.example.com. (
0605200803 ; serial (d. adams)
36000 ; refresh
36000 ; retry
36000 ; expiry
36000 ) ; minimum

IN NS example.com.

example.com. IN A 192.168.2.141
example.org. IN A 192.168.2.142

www CNAME example.com.
The expiry timer is set to 36000 that in seconds means 10 hours. So the zone on slave will expire in 10 hours if the master cannot be contacted in the meantime. Keep in mind that the timers are in seconds and the slave WILL NOT ANSWER ANY QUERY WHEN THE ZONE HAS EXPIRED (the answer will be SERVFAIL).

24Mar/092

Installing a DNS Server on CentOS 5

About DNS
When hosts on a network connect to one another via a hostname, also called a fully qualified domain name (FQDN), DNS is used to associate the names of machines to the IP address for the host.

Use of DNS and FQDNs also has advantages for system administrators, allowing the flexibility to change the IP address for a host without effecting name-based queries to the machine. Conversely, administrators can shuffle which machines handle a name-based query.

DNS is normally implemented using centralized servers that are authoritative for some domains and refer to other DNS servers for other domains.

When a client host requests information from a nameserver, it usually connects to port 53. The nameserver then attempts to resolve the FQDN based on its resolver library, which may contain authoritative information about the host requested or cached data from an earlier query. If the nameserver does not already have the answer in its resolver library, it queries other nameservers, called root nameservers, to determine which nameservers are authoritative for the FQDN in question. Then, with that information, it queries the authoritative nameservers to determine the IP address of the requested host. If performing a reverse lookup, the same procedure is used, except the query is made with an unknown IP address rather than a name.

Example:

bob.example.com
mail.example.com
games.example3.com

In this case we will use the well known BIND 9. BIND is also known as the service named in CentOS.