Wednesday, January 26, 2011

Registering a co.za using private nameservers

Hi Everyone

I'm having some difficulty registering a co.za domain using my own name servers. I'm new to this so please excuse and newbie mistakes and questions.

I'm using BIND 9.7.1-P2 and have followed all the tutorials I can find. But when I try register the co.za domain I get the following:


Provided Nameserver information Primary Server : ns1.maximadns.co.za @ 41.185.17.58 Secondary 1 : ns2.maximadns.co.za @ 41.185.17.59

Domain "maximadns.co.za", SOA Ref (), Orig "" Pre-existing Nameservers for "maximadns.co.za":-

Syntax/Cross-Checking provided info for Nameserver at 6a: ns1.maximadns.co.za @ 41.185.17.58 IPv4: 41.185.17.58 ==> [WARN: No PTR records!] FQDN: ns1.maximadns.co.za ==> [WARN: No A records!]

Syntax/Cross-Checking provided info for Nameserver at 6e: ns2.maximadns.co.za @ 41.185.17.59 IPv4: 41.185.17.59 ==> [WARN: No PTR records!] FQDN: ns2.maximadns.co.za ==> [WARN: No A records!] ! ! The message "No PTR records?" indicates that the reverse domain | information has not been configured correctly. ! ! ! The message "No A records?" means that name of the Nameserver specified can not be resolved. ! This can be ignored if the specified Nameserver is a child of the | domain application. !

Adding application Checking quoted Nameservers....

NS1-1 FQDN: ns1.maximadns.co.za. NS1-1 IPV4: 41.185.17.58 NS1-1 ORIGIN: ns1.maximadns.co.za. NS1-1 E-MAIL: hostmaster@maximasoftware.co.za. NS1-1 SER-NO: 2010081601 NS1-1 NS RECORD1: ns1.maximadns.co.za. NS1-1 NS RECORD2: ns2.maximadns.co.za.

NS2-1 FQDN: ns2.maximadns.co.za. NS2-1 IPV4: 41.185.17.59 NS2-1 ORIGIN: ns1.maximadns.co.za. NS2-1 E-MAIL: hostmaster@maximasoftware.co.za. NS2-1 SER-NO: 2010081601 NS2-1 NS RECORD1: ns1.maximadns.co.za. NS2-1 NS RECORD2: ns2.maximadns.co.za.

ERROR: No valid nameservers found - rejecting request.


I did provide IPv4 glue records when specifying the nameservers for the domain registration. From what I understand that error means that there are no A or PTR records for the domain found on the specified servers. But what confuses me is when I use Dig to check if my name servers are working, I seem to get the correct response (well according to the tutorials I've read).

When I do a 'dig @41.185.17.58 maximadns.co.za' I get the following response:


; <<>> DiG 9.3.2 <<>> @41.185.17.58 maximadns.co.za ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1364 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION: ;maximadns.co.za. IN A

;; ANSWER SECTION: maximadns.co.za. 21600 IN A 41.185.17.62

;; AUTHORITY SECTION: maximadns.co.za. 21600 IN NS ns1.maximadns.co.za. maximadns.co.za. 21600 IN NS ns2.maximadns.co.za.

;; ADDITIONAL SECTION: ns1.maximadns.co.za. 21600 IN A 41.185.17.58 ns2.maximadns.co.za. 21600 IN A 41.185.17.59

;; Query time: 53 msec ;; SERVER: 41.185.17.58#53(41.185.17.58) ;; WHEN: Wed Aug 18 10:08:23 2010 ;; MSG SIZE rcvd: 117


And when I do a 'dig @41.185.17.58 -x 41.185.17.58' I get the following response:


; <<>> DiG 9.3.2 <<>> @41.185.17.58 -x 41.185.17.58 ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1660 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION: ;58.17.185.41.in-addr.arpa. IN PTR

;; ANSWER SECTION: 58.17.185.41.in-addr.arpa. 21600 IN PTR ns1.maximadns.co.za.

;; AUTHORITY SECTION: 17.185.41.in-addr.arpa. 21600 IN NS ns1.maximadns.co.za. 17.185.41.in-addr.arpa. 21600 IN NS ns2.maximadns.co.za.

;; ADDITIONAL SECTION: ns1.maximadns.co.za. 21600 IN A 41.185.17.58 ns2.maximadns.co.za. 21600 IN A 41.185.17.59

;; Query time: 41 msec ;; SERVER: 41.185.17.58#53(41.185.17.58) ;; WHEN: Wed Aug 18 10:09:54 2010 ;; MSG SIZE rcvd: 140


Just for the record I'm not doing these dig queries on the server itself, I'm doing them from my personal PC which is not on the same LAN as the server, so they are being performed over the Internet. I'm aware that I'm specifying my server for these dig queries, but unless I misunderstand when I specify Glue Addresses when registering the domain it will explicitly use those IP Addresses as the name servers.

This is the point I'm stuck at, when I try register the domain it says my name servers aren't valid, but when I test my name servers they are "working". Either I'm testing incorrectly and/or have misunderstood some or all of the concepts of DNS.

Any help/advice/pointers you can afford to offer would be greatly appreciated.

Thanks in advance.

  • The issue is with your PTR records they do not exist for 41.185.17.58 41.185.17.59.

    host 41.185.17.58
    Host 58.17.185.41.in-addr.arpa. not found: 3(NXDOMAIN)
    

    From what i can see that block belongs to web africa, you need to get them to deligate your part to you or create PTR records for you.

    17.185.41.in-addr.arpa. 522 IN  SOA smtp1.wadns.net. noc.webafrica.co.za. 2008120678 14400 600 86400 14400
    
    Brendon : Thanks! That makes sense since that server is being rented from them. I will submit a ticket with them
    From topdog

Anonymous access in IIS is prompting for credentials

I'm trying to set up anonymous access for my LAN on IIS on Windows XP.

The problem is that when I navigate to the site via a web browser, it asks for the username and password.

Here are the settings in IIS > Website Properties > Directory Security:

[X] Anonymous access  
Username: IUSR_computername 
Password: ********** 
[X] Allow IIS to control password  

[ ] Basic authentication  
[X] Integrated Windows authentication

Note: the computer's name was changed, so IUSR_computername is actually an old name for the computer. However, it's the same name of the account I see in Computer Management > System Tools > Local Users and Groups.


I tried changing the password in Computer Management for IUSR_computername, then in IIS unchecking "Allow IIS to control password" and entering in the same exact password, but that didn't help.

Update: I'm trying to set up a virtual directory which is hosted in My Documents folder. From what I understand, this isn't working because the IUSR account doesn't have access to the folder. I confirmed it by trying to use a folder under C:\ and it worked fine.

So I guess my question is how can I keep my folder in the My Documents folder, but also not give too much permissions to the IUSR account? For example, I don't want to add the user to the Users group in Windows, since that would probably give the user too many privileges (e.g. even on other sites). Also, I don't want to use my own username/pw (instead of IUSR), since that would give this anonymous site a user with too many privileges (my account is an administrator on this machine).

Ideally I would want to use a low level user (e.g. IUSR), but selectively give it access to only this one folder in My Documents. Is that possible?

  • In order for the user account used by IIS for anonymous access to actually access a folder, it needs NTFS-level permissions on that folder; so, if you want to publish some folder in IIS anonymously, you'll need to give that account at least read permissions on that specific folder.

    From Massimo
  • You must make sure that the IUSR account has permissions to view that folder:

    • Either place the file in a folder where the user has permissions (e.g. C:\ instead of My Documents)
    • Or, give reading privileges to that account via the Security tab in Windows. (Windows XP users not on a domain will need to enable this tab).
    From Senseful

Looking for an addressbook (web)application that read/writes LDAP.

In an existing infra-structure based on Debian/Cyrus/Exim/Horde/LDAP I'm trying to make all the clients (OSX and Windows 7, preferably also iPhone and blackberry) work with a centralized LDAP addressbook database. Right now horde is used for webmail. For email this works fine, but I'm struggling to make a central addressbook that's readable for all clients.

I can't make Horde use the LDAP addresbook that Thunderbird uses (Authentication works fine though). The app we use to write to the LDAP database is homegrown and we need advanced features, like mailinglists. Non-geeks need to be able to use this, so I can't use barebones ldap editoprs like LDAPBrowser and LDAPphpadmin.

I've two questions :

  • Does anybody have a suggestion for an addressbook application that can read and write to an LDAP addressbook so that Thunderbird and Apple Mail users can use it?
  • Would it be better to rework the complete email infra-structure and use something like Zimbra?

I strongly prefer an open source solution.

  • Really, don't think about get this going with a homegrown solution. You will experience so many problems and incompatibilities that you will go mad over it and still have no working solution.

    As an example: Both Thunderbird and Apple Mail can read LDAP address books, but neither can write them, and IIRC there are minor differences in the required schema to make interaction difficult.

    Zimbra, OpenExchange, Zarafa etc. as full grown groupware suites make all this considerable easier or possible at all with specialized connectors for all kind of applications. As a matter of fact, they did all the work necessary to get all the components play together for you, as i.e Zimbra is heavily based on open source components.

    From SvenW

Using smartctl to get vendor specific Attributes from ssd drive behind a SmartArray P410 controller

Hi!

Recently I have deployed some HP server with SSD's behind a SmartArray P410 controller. While not official supported from HP the server work well sofar.

Now I like to get wear level info's, error statistics etc from the drive. While the SA P410 supports a passthru of the SMART Command to a single drive in the array the output I was not able to the the interesting things from the drive.

In this case especially the value the Wear level indicator is from interest for me (Attr.ID 233), but this is ony present if the drive is directly attanched to a SATA Controller.

smartctl on directly connected ssd:

# smartctl -A /dev/sda
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8
Bruce Allen
Home page is http://smartmontools.sourceforge.net/

    === START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 5
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE     
UPDATED  WHEN_FAILED RAW_VALUE
  3 Spin_Up_Time            0x0000   100   000   000    Old_age  Offline  In_the_past 0
  4 Start_Stop_Count        0x0000   100   000   000    Old_age  Offline  In_the_past 0
  5 Reallocated_Sector_Ct   0x0002   100   100   000    Old_age  Always       -       0
  9 Power_On_Hours          0x0002   100   100   000    Old_age  Always       -       8561
 12 Power_Cycle_Count       0x0002   100   100   000    Old_age  Always       -       55
192 Power-Off_Retract_Count 0x0002   100   100   000    Old_age  Always       -       29
232 Unknown_Attribute       0x0003   100   100   010    Pre-fail Always       -       0
233 Unknown_Attribute       0x0002   088   088   000    Old_age  Always       -       0
225 Load_Cycle_Count        0x0000   198   198   000    Old_age  Offline      -      508509
226 Load-in_Time            0x0002   255   000   000    Old_age  Always   In_the_past 0
227 Torq-amp_Count          0x0002   000   000   000    Old_age  Always   FAILING_NOW 0
228 Power-off_Retract_Count 0x0002   000   000   000    Old_age  Always   FAILING_NOW 0

smartctl on P410 connected ssd:

# ./smartctl -A -d cciss,0 /dev/cciss/c1d0
smartctl 5.39.1 2010-01-28 r3054 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

(Right, it is complety empty)

smartctl on P410 connected hdd:

# ./smartctl -A -d cciss,0 /dev/cciss/c0d0
smartctl 5.39.1 2010-01-28 r3054 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

Current Drive Temperature:     27 C
Drive Trip Temperature:        68 C
Vendor (Seagate) cache information
  Blocks sent to initiator = 1871654030
  Blocks received from initiator = 1360012929
  Blocks read from cache and sent to initiator = 2178203797
  Number of read and write commands whose size <= segment size = 46052239
  Number of read and write commands whose size > segment size = 0
Vendor (Seagate/Hitachi) factory information
  number of hours powered up = 3363.25
  number of minutes until next internal SMART test = 12

Do I hunt here a bug, or is this a limitation of the p410 SMART cmd Passthru?

  • I'm sorry that I can't offer any solution, but I can verify that I get similar results on the Smart Array P400.

    I'd be very interested to know what, if anything, you figure out. What SSDs are you using and what configuration?

    Lairsdragon : We were using Intel X25M G1 160 GB SSD's in a RAID 1+0 Stripeset. Recently we have replaces the Intel X25M G1 with Intel X25M G2, since the G1 series produces Timeout on the Controller on heavy write load.
    From John

Find out why Linux chat script for ppp connection fails

Hi everybody, I'm having trouble making a ppp connection over a GSM Modem. The Platform is an ARM based embedded device, running Debian Linux 5. The scripts worked before with this device, but not with the new shipment. I just can't get enough information out of chat (/usr/sbin/chat).

The connection is started out of a C Program and the call looks something like this:

/usr/sbin/pppd ttyS1 connect /usr/sbin/chat -S -s -v -T PIN-Nr -f /etc/chatscripts/chat_gprs_con

I have tracked the Problem down to chat, which handles the communication with the modem hardware.

/usr/sbin/chat -e -v -T PIN-NR -f /etc/chatscripts/chat_gprs_con

chat_gprs_con looks like this:

TIMEOUT         10
ECHO            ON
ABORT           '\nBUSY\r'
ABORT           '\nERROR\r'
ABORT           '\nNO ANSWER\r'
ABORT           '\nNO CARRIER\r'
ABORT           '\nNO DIALTONE\r'
ABORT           '\RINGRING\r\n\r\nRINGRING\r'
""      AT
'OK-\d+++\d\d\c-OK'     ATZ
TIMEOUT         3
OK      AT+CSQ
OK      ATE1
OK      AT+CPIN?
'CPIN: READY-AT+CPIN="\T"-OK'   'AT+COPS?'
OK              'at+cgdcont=1, "IP", "a1.net"'
OK              ATD*99***1#
TIMEOUT         25
SAY     "\nwaiting for connect...\n"
CONNECT         ""
SAY     "\nConnected."
SAY     "\nIf the following ppp negotiations fail,\n"
SAY     "try restarting the phone.\n"

The only info I get throug the verbose output in /var/log/syslog or /var/log/messages is:

Jan  1 00:12:30 evm chat[1405]: timeout set to 10 seconds
Jan  1 00:12:30 evm chat[1405]: abort on (\nBUSY\r)
Jan  1 00:12:30 evm chat[1405]: abort on (\nERROR\r)
Jan  1 00:12:30 evm chat[1405]: abort on (\nNO ANSWER\r)
Jan  1 00:12:30 evm chat[1405]: abort on (\nNO CARRIER\r)
Jan  1 00:12:30 evm chat[1405]: abort on (\nNO DIALTONE\r)
Jan  1 00:12:30 evm chat[1405]: abort on (\RINGRING\r\n\r\nRINGRING\r)
Jan  1 00:12:30 evm chat[1405]: send (AT^M)
Jan  1 00:12:30 evm chat[1405]: expect (OK)
Jan  1 00:12:40 evm chat[1405]: alarm
Jan  1 00:12:40 evm chat[1405]: send (\d+++\d\d)
Jan  1 00:12:43 evm chat[1405]: expect (OK)
Jan  1 00:12:53 evm chat[1405]: alarm
Jan  1 00:12:53 evm chat[1405]: Failed

But I can't find out WHY it fails :(

Any ideas and help are very apprechiated! Thanks, Ben

  • add debug to your pppd config file

    From topdog
  • It looks like chat is receiving no reply from the modem/serial port.

    Try connecting to the modem using minicom and see what happens when you type stuff in by hand.

    You might also want to compile a copy of serlook for your platform.

    From symcbean
  • Well for it looks like the Modem does not answer at all. You could check for baudrate, and hardware handshake.

    Since our are talking about an embedded plattform you should make shure the GSM module is powered on since some plattforms allow to poweroff the module to save power.

File download speed windows server 2003 over long distance

Hi there,

The company I'm working for currently has a server situated in Hong Kong, serving content to mobile phone user OTA via their operator's APN, mainly to operators from the south east asia region.

We adopted the OMA OTA provisioning approach such that we only count a download being successful when we received a 900 Success from the Install-Notify response, otherwise count as download failure.

However, there are tonnes of errors including 907 Invalid JAR, 902 Loss of service, etc. I am talking about an error ratio of 97%. I have went thru the code path and examined the content of the JAD, JAR and the manifest file are valid.

I start suspecting the high number of errors is due to the pathway from our server to the destination being too convoluted.

I tried tracert from the server (windows server 2003 R2) to the designated APN and found out it is essentially going thru Japan and US and didn't managed to get all hops within the limit of 30.

Is there anything I can do to be more certain that the high number of download failures are due to the geographical distance rather than anything. Having said that we have performed UAT test for end-to-end within Hong Kong however that doesn't imply things would work the same outside the region.

We are using IIS6 with ASP.NET2.0, the server is sitting on a network backbone from a data center where I know they have a high speed link to Japan.

Many thanks.

  • Distance is not an excuse. Most of us work over 20'000km links without problems (except annoying ping). I would really try to move server closer to the users, or at least try to use different datacenter in HK.

    codemonkie : Ok, thanks for your suggestion BarsMonster. Now I need to gather some real evidence to present to the boss to support a datacentre move.

How can website access certificate store on my client machine?

What web technology allows a website to access a certificate store on my client machine?

Do web browsers allows websites to access certificate stores? Can you configure a browser such as IE to restrict a website from accessing certificate stores?

  • Do web browsers allows websites to access certificate stores?

    No, except in support for client side certificates (and the browser might have an option to always require some user interaction to confirm this), or—for Internet Explorer—ActiveX controls have access to everything the user has access to, this includes their certificate store.

    In IE: Internet Options | Security | <Select Level> | Custom Level... | Don't prompt for client certificate selection when no [...]

    I.e. IE will always prompt if there is not exactly one matching certificate, and optionally always.

    From Richard